#2A188C#2A188C

#2A188C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.1% C 0.176 H 277.9°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2A188C
RGBrgb(42, 24, 140)
HSLhsl(249, 71%, 32%)
HSVhsv(249, 83%, 55%)
CMYKcmyk(70%, 82.9%, 0%, 45.1%)
CIE-LABlab(20.20, 43.21, -60.18)
CIE-LCHlch(20.20, 74.09, 305.68°)
OKLaboklab(33.14% 0.0241 -0.1739)
OKLCHoklch(33.14% 0.176 277.9)
XYZxyz(6.0136, 3.0384, 25.0754)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A188C #7A8C18
analogous
#18408C #2A188C #64188C
triadic
#2A188C #8C2A18 #188C2A
tetradic
#2A188C #8C1840 #7A8C18 #188C64
square
#2A188C #8C1840 #7A8C18 #188C64
split-complementary
#2A188C #8C6418 #408C18
monochromatic
#0B0624 #1A0F58 #2A188C #3A21C0 #5940DE

Accessibility & contrast

On white

13.06
#2A188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A188C
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A188C#FFFFFF#000000##FFFFFF
##2A188C1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a188c;
/* rgb */ color: rgb(42, 24, 140);
/* oklch */ color: oklch(33.1% 0.176 277.9);
Tailwind
colors: {
  custom: {
    50: '#7459af',
    500: '#2a188c',
    950: '#000000',
  },
}
SCSS
$custom: #2a188c;
$custom-light: #7459af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a188c",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 249.31,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3314,
    "c": 0.17552,
    "h": 277.9
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#2A188C
secondary
#ABBF41
accent
#ED3AD2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A188C

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

Preview Lab → · Contrast checker → · Palette generator →

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