#1D2F8F#1D2F8F

#1D2F8F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.159 H 268.4°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#1D2F8F
RGBrgb(29, 47, 143)
HSLhsl(231, 66%, 34%)
HSVhsv(231, 80%, 56%)
CMYKcmyk(79.7%, 67.1%, 0%, 43.9%)
CIE-LABlab(24.57, 29.40, -54.87)
CIE-LCHlch(24.57, 62.25, 298.18°)
OKLaboklab(36.13% -0.0043 -0.1588)
OKLCHoklch(36.13% 0.159 268.4)
XYZxyz(6.4794, 4.2767, 26.4653)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F8F #8F7D1D
analogous
#1D688F #1D2F8F #441D8F
triadic
#1D2F8F #8F1D2F #2F8F1D
tetradic
#1D2F8F #8F1D68 #8F7D1D #1D8F44
square
#1D2F8F #8F1D68 #8F7D1D #1D8F44
split-complementary
#1D2F8F #8F441D #688F1D
monochromatic
#080E29 #131E5C #1D2F8F #2740C2 #4C62DB

Accessibility & contrast

On white

11.32
#1D2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1D2F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F8F
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F8F#FFFFFF#000000##FFFFFF
##1D2F8F1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1d2f8f;
/* rgb */ color: rgb(29, 47, 143);
/* oklch */ color: oklch(36.1% 0.159 268.4);
Tailwind
colors: {
  custom: {
    50: '#6d67b1',
    500: '#1d2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f8f;
$custom-light: #6d67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f8f",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 230.526,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36134,
    "c": 0.15888,
    "h": 268.4
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#1D2F8F
secondary
#BDAB4B
accent
#CE3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1D2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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