#1D2A8F#1D2A8F

#1D2A8F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.165 H 269.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#1D2A8F
RGBrgb(29, 42, 143)
HSLhsl(233, 66%, 34%)
HSVhsv(233, 80%, 56%)
CMYKcmyk(79.7%, 70.6%, 0%, 43.9%)
CIE-LABlab(23.34, 32.70, -56.89)
CIE-LCHlch(23.34, 65.62, 299.89°)
OKLaboklab(35.24% -0.0016 -0.1647)
OKLCHoklch(35.24% 0.165 269.4)
XYZxyz(6.2909, 3.8996, 26.4024)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2A8F #8F821D
analogous
#1D638F #1D2A8F #491D8F
triadic
#1D2A8F #8F1D2A #2A8F1D
tetradic
#1D2A8F #8F1D63 #8F821D #1D8F49
square
#1D2A8F #8F1D63 #8F821D #1D8F49
split-complementary
#1D2A8F #8F491D #638F1D
monochromatic
#080C29 #131B5C #1D2A8F #2739C2 #4C5CDB

Accessibility & contrast

On white

11.80
#1D2A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1D2A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2A8F
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2A8F#FFFFFF#000000##FFFFFF
##1D2A8F1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1d2a8f;
/* rgb */ color: rgb(29, 42, 143);
/* oklch */ color: oklch(35.2% 0.165 269.4);
Tailwind
colors: {
  custom: {
    50: '#6e64b1',
    500: '#1d2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #1d2a8f;
$custom-light: #6e64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2a8f",
  "rgb": {
    "r": 29,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 233.158,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35239,
    "c": 0.16475,
    "h": 269.4
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#1D2A8F
secondary
#BDB04B
accent
#D63FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #1D2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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