#2A189F#2A189F

#2A189F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.4% C 0.198 H 275.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2A189F
RGBrgb(42, 24, 159)
HSLhsl(248, 74%, 36%)
HSVhsv(248, 85%, 62%)
CMYKcmyk(73.6%, 84.9%, 0%, 37.6%)
CIE-LABlab(22.47, 48.99, -68.15)
CIE-LCHlch(22.47, 83.93, 305.71°)
OKLaboklab(35.37% 0.0183 -0.197)
OKLCHoklch(35.37% 0.198 275.3)
XYZxyz(7.5374, 3.6480, 33.1011)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A189F #8D9F18
analogous
#18499F #2A189F #6D189F
triadic
#2A189F #9F2A18 #189F2A
tetradic
#2A189F #9F1849 #8D9F18 #189F6D
square
#2A189F #9F1849 #8D9F18 #189F6D
split-complementary
#2A189F #9F6D18 #499F18
monochromatic
#0E0835 #1C106A #2A189F #3820D4 #614DE4

Accessibility & contrast

On white

12.14
#2A189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A189F
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A189F#FFFFFF#000000##FFFFFF
##2A189F1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a189f;
/* rgb */ color: rgb(42, 24, 159);
/* oklch */ color: oklch(35.4% 0.198 275.3);
Tailwind
colors: {
  custom: {
    50: '#785bbd',
    500: '#2a189f',
    950: '#000000',
  },
}
SCSS
$custom: #2a189f;
$custom-light: #785bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a189f",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 248,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35368,
    "c": 0.19782,
    "h": 275.3
  },
  "luminance": 0.03649
}

Semantic roles & 50–950 ramp

primary
#2A189F
secondary
#B6C64D
accent
#F037D8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2A189F

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

Preview Lab → · Contrast checker → · Palette generator →

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