#2A188F#2A188F

#2A188F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.5% C 0.179 H 277.4°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#2A188F
RGBrgb(42, 24, 143)
HSLhsl(249, 71%, 33%)
HSVhsv(249, 83%, 56%)
CMYKcmyk(70.6%, 83.2%, 0%, 43.9%)
CIE-LABlab(20.55, 44.14, -61.47)
CIE-LCHlch(20.55, 75.68, 305.68°)
OKLaboklab(33.49% 0.0232 -0.1776)
OKLCHoklch(33.49% 0.179 277.4)
XYZxyz(6.2378, 3.1281, 26.2563)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A188F #7D8F18
analogous
#18418F #2A188F #66188F
triadic
#2A188F #8F2A18 #188F2A
tetradic
#2A188F #8F1841 #7D8F18 #188F66
square
#2A188F #8F1841 #7D8F18 #188F66
split-complementary
#2A188F #8F6618 #418F18
monochromatic
#0B0626 #1B0F5B #2A188F #3921C3 #5A42DF

Accessibility & contrast

On white

12.92
#2A188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A188F
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A188F#FFFFFF#000000##FFFFFF
##2A188F1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a188f;
/* rgb */ color: rgb(42, 24, 143);
/* oklch */ color: oklch(33.5% 0.179 277.4);
Tailwind
colors: {
  custom: {
    50: '#7459b1',
    500: '#2a188f',
    950: '#000000',
  },
}
SCSS
$custom: #2a188f;
$custom-light: #7459b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a188f",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 249.076,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33487,
    "c": 0.1791,
    "h": 277.4
  },
  "luminance": 0.03129
}

Semantic roles & 50–950 ramp

primary
#2A188F
secondary
#ADC043
accent
#EE3AD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A188F

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

Preview Lab → · Contrast checker → · Palette generator →

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