#1D2F5C#1D2F5C

#1D2F5C is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.6% C 0.084 H 265.5°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#1D2F5C
RGBrgb(29, 47, 92)
HSLhsl(223, 52%, 24%)
HSVhsv(223, 68%, 36%)
CMYKcmyk(68.5%, 48.9%, 0%, 63.9%)
CIE-LABlab(20.31, 9.12, -29.21)
CIE-LCHlch(20.31, 30.60, 287.33°)
OKLaboklab(31.62% -0.0066 -0.0834)
OKLCHoklch(31.62% 0.084 265.5)
XYZxyz(3.4543, 3.0666, 10.5330)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F5C #5C4A1D
analogous
#1D4E5C #1D2F5C #2A1D5C
triadic
#1D2F5C #5C1D2F #2F5C1D
tetradic
#1D2F5C #5C1D4E #5C4A1D #1D5C2A
square
#1D2F5C #5C1D4E #5C4A1D #1D5C2A
split-complementary
#1D2F5C #5C2A1D #4E5C1D
monochromatic
#070C17 #0E172D #1D2F5C #2C478B #3A5FB9

Accessibility & contrast

On white

13.02
#1D2F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1D2F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F5C
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F5C#FFFFFF#000000##FFFFFF
##1D2F5C1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19345E
Deuteranopia (green-blind)
#0E2E5B
Tritanopia (blue-blind)
#003941
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d2f5c;
/* rgb */ color: rgb(29, 47, 92);
/* oklch */ color: oklch(31.6% 0.084 265.5);
Tailwind
colors: {
  custom: {
    50: '#60678a',
    500: '#1d2f5c',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f5c;
$custom-light: #60678a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f5c",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 92
  },
  "hsl": {
    "h": 222.857,
    "s": 52.066,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31617,
    "c": 0.08371,
    "h": 265.5
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#1D2F5C
secondary
#917B44
accent
#B34CDC
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1D2F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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