#1D1F7B#1D1F7B

#1D1F7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.151 H 272.6°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#1D1F7B
RGBrgb(29, 31, 123)
HSLhsl(239, 62%, 30%)
HSVhsv(239, 76%, 48%)
CMYKcmyk(76.4%, 74.8%, 0%, 51.8%)
CIE-LABlab(18.67, 32.37, -52.00)
CIE-LCHlch(18.67, 61.25, 301.90°)
OKLaboklab(31.25% 0.0068 -0.1505)
OKLCHoklch(31.25% 0.151 272.6)
XYZxyz(4.5706, 2.6708, 19.0097)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F7B #7B791D
analogous
#1D4E7B #1D1F7B #4A1D7B
triadic
#1D1F7B #7B1D1F #1F7B1D
tetradic
#1D1F7B #7B1D4E #7B791D #1D7B4A
square
#1D1F7B #7B1D4E #7B791D #1D7B4A
split-complementary
#1D1F7B #7B4A1D #4E7B1D
monochromatic
#060619 #111349 #1D1F7B #292BAD #4043D2

Accessibility & contrast

On white

13.69
#1D1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1D1F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F7B
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F7B#FFFFFF#000000##FFFFFF
##1D1F7B1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d1f7b;
/* rgb */ color: rgb(29, 31, 123);
/* oklch */ color: oklch(31.3% 0.151 272.6);
Tailwind
colors: {
  custom: {
    50: '#6a5ba2',
    500: '#1d1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f7b;
$custom-light: #6a5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f7b",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 238.723,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31252,
    "c": 0.15061,
    "h": 272.6
  },
  "luminance": 0.02671
}

Semantic roles & 50–950 ramp

primary
#1D1F7B
secondary
#AFAC45
accent
#E143E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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