#1D2F5E#1D2F5E

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

Color values

HEX#1D2F5E
RGBrgb(29, 47, 94)
HSLhsl(223, 53%, 24%)
HSVhsv(223, 69%, 37%)
CMYKcmyk(69.1%, 50%, 0%, 63.1%)
CIE-LABlab(20.45, 9.92, -30.31)
CIE-LCHlch(20.45, 31.89, 288.12°)
OKLaboklab(31.77% -0.0062 -0.0867)
OKLCHoklch(31.77% 0.087 265.9)
XYZxyz(3.5429, 3.1021, 10.9996)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F5E #5E4C1D
analogous
#1D505E #1D2F5E #2C1D5E
triadic
#1D2F5E #5E1D2F #2F5E1D
tetradic
#1D2F5E #5E1D50 #5E4C1D #1D5E2C
square
#1D2F5E #5E1D50 #5E4C1D #1D5E2C
split-complementary
#1D2F5E #5E2C1D #505E1D
monochromatic
#070C17 #0F182F #1D2F5E #2B468D #3A5EBC

Accessibility & contrast

On white

12.96
#1D2F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D2F5E
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F5E#FFFFFF#000000##FFFFFF
##1D2F5E1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d2f5e;
/* rgb */ color: rgb(29, 47, 94);
/* oklch */ color: oklch(31.8% 0.087 265.9);
Tailwind
colors: {
  custom: {
    50: '#61678c',
    500: '#1d2f5e',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f5e;
$custom-light: #61678c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f5e",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 94
  },
  "hsl": {
    "h": 223.385,
    "s": 52.846,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31769,
    "c": 0.08689,
    "h": 265.9
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#1D2F5E
secondary
#937D44
accent
#B44CDC
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #1D2F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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