#2D189F#2D189F

#2D189F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.6% C 0.197 H 276.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2D189F
RGBrgb(45, 24, 159)
HSLhsl(249, 74%, 36%)
HSVhsv(249, 85%, 62%)
CMYKcmyk(71.7%, 84.9%, 0%, 37.6%)
CIE-LABlab(22.70, 49.20, -67.76)
CIE-LCHlch(22.70, 83.74, 305.98°)
OKLaboklab(35.58% 0.0226 -0.1958)
OKLCHoklch(35.58% 0.197 276.6)
XYZxyz(7.6648, 3.7136, 33.1070)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D189F #8A9F18
analogous
#18479F #2D189F #70189F
triadic
#2D189F #9F2D18 #189F2D
tetradic
#2D189F #9F1847 #8A9F18 #189F70
square
#2D189F #9F1847 #8A9F18 #189F70
split-complementary
#2D189F #9F7018 #479F18
monochromatic
#0F0835 #1E106A #2D189F #3C20D4 #654DE4

Accessibility & contrast

On white

12.05
#2D189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D189F
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D189F#FFFFFF#000000##FFFFFF
##2D189F1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d189f;
/* rgb */ color: rgb(45, 24, 159);
/* oklch */ color: oklch(35.6% 0.197 276.6);
Tailwind
colors: {
  custom: {
    50: '#795bbd',
    500: '#2d189f',
    950: '#000000',
  },
}
SCSS
$custom: #2d189f;
$custom-light: #795bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d189f",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 249.333,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35584,
    "c": 0.1971,
    "h": 276.6
  },
  "luminance": 0.03714
}

Semantic roles & 50–950 ramp

primary
#2D189F
secondary
#B3C64D
accent
#F037D4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D189F

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

Preview Lab → · Contrast checker → · Palette generator →

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