#1D2F8A#1D2F8A

#1D2F8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.152 H 268.5°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#1D2F8A
RGBrgb(29, 47, 138)
HSLhsl(230, 65%, 33%)
HSVhsv(230, 79%, 54%)
CMYKcmyk(79%, 65.9%, 0%, 45.9%)
CIE-LABlab(24.09, 27.48, -52.55)
CIE-LCHlch(24.09, 59.30, 297.60°)
OKLaboklab(35.64% -0.0041 -0.152)
OKLCHoklch(35.64% 0.152 268.5)
XYZxyz(6.1091, 4.1285, 24.5147)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F8A #8A781D
analogous
#1D658A #1D2F8A #421D8A
triadic
#1D2F8A #8A1D2F #2F8A1D
tetradic
#1D2F8A #8A1D65 #8A781D #1D8A42
square
#1D2F8A #8A1D65 #8A781D #1D8A42
split-complementary
#1D2F8A #8A421D #658A1D
monochromatic
#080D25 #121E57 #1D2F8A #2840BD #4960D9

Accessibility & contrast

On white

11.50
#1D2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D2F8A
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F8A#FFFFFF#000000##FFFFFF
##1D2F8A1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d2f8a;
/* rgb */ color: rgb(29, 47, 138);
/* oklch */ color: oklch(35.6% 0.152 268.5);
Tailwind
colors: {
  custom: {
    50: '#6c67ad',
    500: '#1d2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f8a;
$custom-light: #6c67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f8a",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 230.092,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35641,
    "c": 0.15206,
    "h": 268.5
  },
  "luminance": 0.04129
}

Semantic roles & 50–950 ramp

primary
#1D2F8A
secondary
#BBA848
accent
#CC40E8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1D2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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