#1D2A7B#1D2A7B

#1D2A7B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.137 H 270.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#1D2A7B
RGBrgb(29, 42, 123)
HSLhsl(232, 62%, 30%)
HSVhsv(232, 76%, 48%)
CMYKcmyk(76.4%, 65.9%, 0%, 51.8%)
CIE-LABlab(21.38, 25.07, -47.55)
CIE-LCHlch(21.38, 53.75, 297.80°)
OKLaboklab(33.22% -0.0001 -0.1374)
OKLCHoklch(33.22% 0.137 270)
XYZxyz(4.9086, 3.3467, 19.1223)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2A7B #7B6E1D
analogous
#1D597B #1D2A7B #3F1D7B
triadic
#1D2A7B #7B1D2A #2A7B1D
tetradic
#1D2A7B #7B1D59 #7B6E1D #1D7B3F
square
#1D2A7B #7B1D59 #7B6E1D #1D7B3F
split-complementary
#1D2A7B #7B3F1D #597B1D
monochromatic
#060819 #111949 #1D2A7B #293BAD #4055D2

Accessibility & contrast

On white

12.58
#1D2A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1D2A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2A7B
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2A7B#FFFFFF#000000##FFFFFF
##1D2A7B1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d2a7b;
/* rgb */ color: rgb(29, 42, 123);
/* oklch */ color: oklch(33.2% 0.137 270.0);
Tailwind
colors: {
  custom: {
    50: '#6863a2',
    500: '#1d2a7b',
    950: '#000000',
  },
}
SCSS
$custom: #1d2a7b;
$custom-light: #6863a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2a7b",
  "rgb": {
    "r": 29,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 231.702,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33217,
    "c": 0.13743,
    "h": 270
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#1D2A7B
secondary
#AFA045
accent
#CF43E5
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D2A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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