#1D3181#1D3181

#1D3181 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.137 H 267.8°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#1D3181
RGBrgb(29, 49, 129)
HSLhsl(228, 63%, 31%)
HSVhsv(228, 78%, 51%)
CMYKcmyk(77.5%, 62%, 0%, 49.4%)
CIE-LABlab(23.81, 22.57, -47.37)
CIE-LCHlch(23.81, 52.48, 295.47°)
OKLaboklab(35.18% -0.0052 -0.1368)
OKLCHoklch(35.18% 0.137 267.8)
XYZxyz(5.5661, 4.0422, 21.2515)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3181 #816D1D
analogous
#1D6381 #1D3181 #3B1D81
triadic
#1D3181 #811D31 #31811D
tetradic
#1D3181 #811D63 #816D1D #1D813B
square
#1D3181 #811D63 #816D1D #1D813B
split-complementary
#1D3181 #813B1D #63811D
monochromatic
#070B1D #121E4F #1D3181 #2844B3 #4461D5

Accessibility & contrast

On white

11.61
#1D3181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1D3181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3181
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3181#FFFFFF#000000##FFFFFF
##1D31811.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1d3181;
/* rgb */ color: rgb(29, 49, 129);
/* oklch */ color: oklch(35.2% 0.137 267.8);
Tailwind
colors: {
  custom: {
    50: '#6968a6',
    500: '#1d3181',
    950: '#000000',
  },
}
SCSS
$custom: #1d3181;
$custom-light: #6968a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3181",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 228,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35181,
    "c": 0.13693,
    "h": 267.8
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#1D3181
secondary
#B49E46
accent
#C541E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1D3181

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

Preview Lab → · Contrast checker → · Palette generator →

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