#2D189D#2D189D

#2D189D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.3% C 0.195 H 276.8°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2D189D
RGBrgb(45, 24, 157)
HSLhsl(249, 73%, 35%)
HSVhsv(249, 85%, 62%)
CMYKcmyk(71.3%, 84.7%, 0%, 38.4%)
CIE-LABlab(22.46, 48.61, -66.94)
CIE-LCHlch(22.46, 82.73, 305.99°)
OKLaboklab(35.35% 0.0232 -0.1934)
OKLCHoklch(35.35% 0.195 276.8)
XYZxyz(7.4926, 3.6448, 32.2004)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D189D #889D18
analogous
#18459D #2D189D #70189D
triadic
#2D189D #9D2D18 #189D2D
tetradic
#2D189D #9D1845 #889D18 #189D70
square
#2D189D #9D1845 #889D18 #189D70
split-complementary
#2D189D #9D7018 #459D18
monochromatic
#0F0833 #1E1068 #2D189D #3C20D2 #644CE4

Accessibility & contrast

On white

12.15
#2D189D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D189D
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D189D#FFFFFF#000000##FFFFFF
##2D189D1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA1
Deuteranopia (green-blind)
#00309B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d189d;
/* rgb */ color: rgb(45, 24, 157);
/* oklch */ color: oklch(35.3% 0.195 276.8);
Tailwind
colors: {
  custom: {
    50: '#795bbb',
    500: '#2d189d',
    950: '#000000',
  },
}
SCSS
$custom: #2d189d;
$custom-light: #795bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d189d",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 157
  },
  "hsl": {
    "h": 249.474,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35349,
    "c": 0.19479,
    "h": 276.8
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#2D189D
secondary
#B2C54B
accent
#F038D3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D189D

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

Preview Lab → · Contrast checker → · Palette generator →

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