#2A188B#2A188B

#2A188B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.174 H 278.0°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#2A188B
RGBrgb(42, 24, 139)
HSLhsl(249, 71%, 32%)
HSVhsv(249, 83%, 55%)
CMYKcmyk(69.8%, 82.7%, 0%, 45.5%)
CIE-LABlab(20.08, 42.90, -59.75)
CIE-LCHlch(20.08, 73.56, 305.68°)
OKLaboklab(33.02% 0.0244 -0.1726)
OKLCHoklch(33.02% 0.174 278)
XYZxyz(5.9402, 3.0091, 24.6889)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A188B #798B18
analogous
#18408B #2A188B #64188B
triadic
#2A188B #8B2A18 #188B2A
tetradic
#2A188B #8B1840 #798B18 #188B64
square
#2A188B #8B1840 #798B18 #188B64
split-complementary
#2A188B #8B6418 #408B18
monochromatic
#0A0623 #1A0F57 #2A188B #3A21BF #583FDE

Accessibility & contrast

On white

13.11
#2A188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A188B
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A188B#FFFFFF#000000##FFFFFF
##2A188B1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a188b;
/* rgb */ color: rgb(42, 24, 139);
/* oklch */ color: oklch(33.0% 0.174 278.0);
Tailwind
colors: {
  custom: {
    50: '#7359ae',
    500: '#2a188b',
    950: '#000000',
  },
}
SCSS
$custom: #2a188b;
$custom-light: #7359ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a188b",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 249.391,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33024,
    "c": 0.17432,
    "h": 278
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#2A188B
secondary
#ABBE40
accent
#ED3AD1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A188B

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

Preview Lab → · Contrast checker → · Palette generator →

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