#1D2F8B#1D2F8B

#1D2F8B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.153 H 268.5°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#1D2F8B
RGBrgb(29, 47, 139)
HSLhsl(230, 65%, 33%)
HSVhsv(230, 79%, 55%)
CMYKcmyk(79.1%, 66.2%, 0%, 45.5%)
CIE-LABlab(24.19, 27.86, -53.02)
CIE-LCHlch(24.19, 59.89, 297.72°)
OKLaboklab(35.74% -0.0041 -0.1534)
OKLCHoklch(35.74% 0.153 268.5)
XYZxyz(6.1818, 4.1576, 24.8978)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F8B #8B791D
analogous
#1D668B #1D2F8B #421D8B
triadic
#1D2F8B #8B1D2F #2F8B1D
tetradic
#1D2F8B #8B1D66 #8B791D #1D8B42
square
#1D2F8B #8B1D66 #8B791D #1D8B42
split-complementary
#1D2F8B #8B421D #668B1D
monochromatic
#080D26 #121E58 #1D2F8B #2840BE #4961D9

Accessibility & contrast

On white

11.47
#1D2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1D2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F8B
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F8B#FFFFFF#000000##FFFFFF
##1D2F8B1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1d2f8b;
/* rgb */ color: rgb(29, 47, 139);
/* oklch */ color: oklch(35.7% 0.153 268.5);
Tailwind
colors: {
  custom: {
    50: '#6c67ae',
    500: '#1d2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f8b;
$custom-light: #6c67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f8b",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 230.182,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35739,
    "c": 0.15343,
    "h": 268.5
  },
  "luminance": 0.04158
}

Semantic roles & 50–950 ramp

primary
#1D2F8B
secondary
#BBA849
accent
#CD3FE8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1D2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

#1D2F8B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva