#1D2F5F#1D2F5F

#1D2F5F is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.8% C 0.088 H 266.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#1D2F5F
RGBrgb(29, 47, 95)
HSLhsl(224, 53%, 24%)
HSVhsv(224, 69%, 37%)
CMYKcmyk(69.5%, 50.5%, 0%, 62.7%)
CIE-LABlab(20.52, 10.32, -30.85)
CIE-LCHlch(20.52, 32.53, 288.50°)
OKLaboklab(31.85% -0.0061 -0.0883)
OKLCHoklch(31.85% 0.088 266.1)
XYZxyz(3.5881, 3.1201, 11.2374)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F5F #5F4D1D
analogous
#1D505F #1D2F5F #2C1D5F
triadic
#1D2F5F #5F1D2F #2F5F1D
tetradic
#1D2F5F #5F1D50 #5F4D1D #1D5F2C
square
#1D2F5F #5F1D50 #5F4D1D #1D5F2C
split-complementary
#1D2F5F #5F2C1D #505F1D
monochromatic
#070C17 #0F1830 #1D2F5F #2B468E #3A5DBD

Accessibility & contrast

On white

12.93
#1D2F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1D2F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F5F
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F5F#FFFFFF#000000##FFFFFF
##1D2F5F1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173561
Deuteranopia (green-blind)
#0A2F5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d2f5f;
/* rgb */ color: rgb(29, 47, 95);
/* oklch */ color: oklch(31.8% 0.088 266.1);
Tailwind
colors: {
  custom: {
    50: '#61678d',
    500: '#1d2f5f',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f5f;
$custom-light: #61678d;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f5f",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 95
  },
  "hsl": {
    "h": 223.636,
    "s": 53.226,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31845,
    "c": 0.08849,
    "h": 266.1
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#1D2F5F
secondary
#947E44
accent
#B54BDD
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #1D2F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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