#1D3161#1D3161

#1D3161 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.5% C 0.089 H 264.9°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#1D3161
RGBrgb(29, 49, 97)
HSLhsl(222, 54%, 25%)
HSVhsv(222, 70%, 38%)
CMYKcmyk(70.1%, 49.5%, 0%, 62%)
CIE-LABlab(21.28, 9.69, -30.93)
CIE-LCHlch(21.28, 32.42, 287.39°)
OKLaboklab(32.48% -0.0079 -0.0885)
OKLCHoklch(32.48% 0.089 264.9)
XYZxyz(3.7619, 3.3205, 11.7496)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3161 #614D1D
analogous
#1D5361 #1D3161 #2B1D61
triadic
#1D3161 #611D31 #31611D
tetradic
#1D3161 #611D53 #614D1D #1D612B
square
#1D3161 #611D53 #614D1D #1D612B
split-complementary
#1D3161 #612B1D #53611D
monochromatic
#070C18 #0F1932 #1D3161 #2B4990 #3961BF

Accessibility & contrast

On white

12.62
#1D3161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1D3161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3161
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3161#FFFFFF#000000##FFFFFF
##1D31611.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193663
Deuteranopia (green-blind)
#0C3060
Tritanopia (blue-blind)
#003C44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d3161;
/* rgb */ color: rgb(29, 49, 97);
/* oklch */ color: oklch(32.5% 0.089 264.9);
Tailwind
colors: {
  custom: {
    50: '#61688e',
    500: '#1d3161',
    950: '#000000',
  },
}
SCSS
$custom: #1d3161;
$custom-light: #61688e;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3161",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 97
  },
  "hsl": {
    "h": 222.353,
    "s": 53.968,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32477,
    "c": 0.08885,
    "h": 264.9
  },
  "luminance": 0.03321
}

Semantic roles & 50–950 ramp

primary
#1D3161
secondary
#967E44
accent
#B24ADD
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #1D3161

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

Preview Lab → · Contrast checker → · Palette generator →

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