#2A188E#2A188E

#2A188E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.178 H 277.6°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2A188E
RGBrgb(42, 24, 142)
HSLhsl(249, 71%, 33%)
HSVhsv(249, 83%, 56%)
CMYKcmyk(70.4%, 83.1%, 0%, 44.3%)
CIE-LABlab(20.43, 43.83, -61.04)
CIE-LCHlch(20.43, 75.15, 305.68°)
OKLaboklab(33.37% 0.0235 -0.1764)
OKLCHoklch(33.37% 0.178 277.6)
XYZxyz(6.1624, 3.0980, 25.8592)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A188E #7C8E18
analogous
#18418E #2A188E #65188E
triadic
#2A188E #8E2A18 #188E2A
tetradic
#2A188E #8E1841 #7C8E18 #188E65
square
#2A188E #8E1841 #7C8E18 #188E65
split-complementary
#2A188E #8E6518 #418E18
monochromatic
#0B0625 #1B0F5A #2A188E #3921C2 #5941DF

Accessibility & contrast

On white

12.96
#2A188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A188E
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A188E#FFFFFF#000000##FFFFFF
##2A188E1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a188e;
/* rgb */ color: rgb(42, 24, 142);
/* oklch */ color: oklch(33.4% 0.178 277.6);
Tailwind
colors: {
  custom: {
    50: '#7459b0',
    500: '#2a188e',
    950: '#000000',
  },
}
SCSS
$custom: #2a188e;
$custom-light: #7459b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a188e",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 249.153,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33371,
    "c": 0.17791,
    "h": 277.6
  },
  "luminance": 0.03099
}

Semantic roles & 50–950 ramp

primary
#2A188E
secondary
#ADC042
accent
#EE3AD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A188E

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

Preview Lab → · Contrast checker → · Palette generator →

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