#2A188D#2A188D

#2A188D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.177 H 277.7°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2A188D
RGBrgb(42, 24, 141)
HSLhsl(249, 71%, 32%)
HSVhsv(249, 83%, 55%)
CMYKcmyk(70.2%, 83%, 0%, 44.7%)
CIE-LABlab(20.31, 43.52, -60.61)
CIE-LCHlch(20.31, 74.62, 305.68°)
OKLaboklab(33.26% 0.0238 -0.1751)
OKLCHoklch(33.26% 0.177 277.7)
XYZxyz(6.0876, 3.0681, 25.4655)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A188D #7B8D18
analogous
#18408D #2A188D #65188D
triadic
#2A188D #8D2A18 #188D2A
tetradic
#2A188D #8D1840 #7B8D18 #188D65
square
#2A188D #8D1840 #7B8D18 #188D65
split-complementary
#2A188D #8D6518 #408D18
monochromatic
#0B0624 #1A0F59 #2A188D #3A21C1 #5941DF

Accessibility & contrast

On white

13.01
#2A188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A188D
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A188D#FFFFFF#000000##FFFFFF
##2A188D1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a188d;
/* rgb */ color: rgb(42, 24, 141);
/* oklch */ color: oklch(33.3% 0.177 277.7);
Tailwind
colors: {
  custom: {
    50: '#7459b0',
    500: '#2a188d',
    950: '#000000',
  },
}
SCSS
$custom: #2a188d;
$custom-light: #7459b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a188d",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 249.231,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33255,
    "c": 0.17672,
    "h": 277.7
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A188D

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

Preview Lab → · Contrast checker → · Palette generator →

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