#1D1F7D#1D1F7D

#1D1F7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.153 H 272.4°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#1D1F7D
RGBrgb(29, 31, 125)
HSLhsl(239, 62%, 30%)
HSVhsv(239, 77%, 49%)
CMYKcmyk(76.8%, 75.2%, 0%, 51%)
CIE-LABlab(18.89, 33.09, -52.91)
CIE-LCHlch(18.89, 62.41, 302.02°)
OKLaboklab(31.47% 0.0065 -0.1531)
OKLCHoklch(31.47% 0.153 272.4)
XYZxyz(4.6971, 2.7214, 19.6758)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F7D #7D7B1D
analogous
#1D4F7D #1D1F7D #4B1D7D
triadic
#1D1F7D #7D1D1F #1F7D1D
tetradic
#1D1F7D #7D1D4F #7D7B1D #1D7D4B
square
#1D1F7D #7D1D4F #7D7B1D #1D7D4B
split-complementary
#1D1F7D #7D4B1D #4F7D1D
monochromatic
#06061A #11134B #1D1F7D #292BAF #4144D3

Accessibility & contrast

On white

13.60
#1D1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1D1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F7D
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F7D#FFFFFF#000000##FFFFFF
##1D1F7D1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d1f7d;
/* rgb */ color: rgb(29, 31, 125);
/* oklch */ color: oklch(31.5% 0.153 272.4);
Tailwind
colors: {
  custom: {
    50: '#6a5ba4',
    500: '#1d1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f7d;
$custom-light: #6a5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f7d",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 238.75,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31472,
    "c": 0.15326,
    "h": 272.4
  },
  "luminance": 0.02722
}

Semantic roles & 50–950 ramp

primary
#1D1F7D
secondary
#B1AE45
accent
#E242E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1D1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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