#2D189B#2D189B

#2D189B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.192 H 277.1°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#2D189B
RGBrgb(45, 24, 155)
HSLhsl(250, 73%, 35%)
HSVhsv(250, 85%, 61%)
CMYKcmyk(71%, 84.5%, 0%, 39.2%)
CIE-LABlab(22.22, 48.02, -66.11)
CIE-LCHlch(22.22, 81.71, 305.99°)
OKLaboklab(35.12% 0.0238 -0.191)
OKLCHoklch(35.12% 0.192 277.1)
XYZxyz(7.3233, 3.5770, 31.3085)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D189B #869B18
analogous
#18459B #2D189B #6E189B
triadic
#2D189B #9B2D18 #189B2D
tetradic
#2D189B #9B1845 #869B18 #189B6E
square
#2D189B #9B1845 #869B18 #189B6E
split-complementary
#2D189B #9B6E18 #459B18
monochromatic
#0E0831 #1E1066 #2D189B #3C20D0 #634AE3

Accessibility & contrast

On white

12.24
#2D189B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2D189B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D189B
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D189B#FFFFFF#000000##FFFFFF
##2D189B1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d189b;
/* rgb */ color: rgb(45, 24, 155);
/* oklch */ color: oklch(35.1% 0.192 277.1);
Tailwind
colors: {
  custom: {
    50: '#785bba',
    500: '#2d189b',
    950: '#000000',
  },
}
SCSS
$custom: #2d189b;
$custom-light: #785bba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d189b",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 155
  },
  "hsl": {
    "h": 249.618,
    "s": 73.184,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35115,
    "c": 0.19248,
    "h": 277.1
  },
  "luminance": 0.03578
}

Semantic roles & 50–950 ramp

primary
#2D189B
secondary
#B1C54A
accent
#F038D2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D189B

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

Preview Lab → · Contrast checker → · Palette generator →

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