#2A45B7#2A45B7

#2A45B7 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.6% C 0.182 H 267.8°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2A45B7
RGBrgb(42, 69, 183)
HSLhsl(229, 63%, 44%)
HSVhsv(229, 77%, 72%)
CMYKcmyk(77%, 62.3%, 0%, 28.2%)
CIE-LABlab(34.33, 31.28, -63.03)
CIE-LCHlch(34.33, 70.37, 296.40°)
OKLaboklab(44.59% -0.0071 -0.1822)
OKLCHoklch(44.59% 0.182 267.8)
XYZxyz(11.6272, 8.1661, 45.7540)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A45B7 #B79C2A
analogous
#2A8CB7 #2A45B7 #562AB7
triadic
#2A45B7 #B72A45 #45B72A
tetradic
#2A45B7 #B72A8C #B79C2A #2AB756
square
#2A45B7 #B72A8C #B79C2A #2AB756
split-complementary
#2A45B7 #B7562A #8CB72A
monochromatic
#131F53 #1F3285 #2A45B7 #4964D5 #7B8EE1

Accessibility & contrast

On white

7.97
#2A45B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2A45B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A45B7
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A45B7#FFFFFF#000000##FFFFFF
##2A45B71.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#004AB5
Tritanopia (blue-blind)
#006377
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a45b7;
/* rgb */ color: rgb(42, 69, 183);
/* oklch */ color: oklch(44.6% 0.182 267.8);
Tailwind
colors: {
  custom: {
    50: '#7a78ce',
    500: '#2a45b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a45b7;
$custom-light: #7a78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a45b7",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 228.511,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44593,
    "c": 0.18239,
    "h": 267.8
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#2A45B7
secondary
#C9B974
accent
#C642E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2A45B7

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2A45B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva