#1D3271#1D3271

#1D3271 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.0% C 0.112 H 266.5°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#1D3271
RGBrgb(29, 50, 113)
HSLhsl(225, 59%, 28%)
HSVhsv(225, 74%, 44%)
CMYKcmyk(74.3%, 55.8%, 0%, 55.7%)
CIE-LABlab(22.77, 15.44, -38.90)
CIE-LCHlch(22.77, 41.86, 291.65°)
OKLaboklab(33.99% -0.0068 -0.1119)
OKLCHoklch(33.99% 0.112 266.5)
XYZxyz(4.6269, 3.7342, 16.0965)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3271 #715C1D
analogous
#1D5C71 #1D3271 #321D71
triadic
#1D3271 #711D32 #32711D
tetradic
#1D3271 #711D5C #715C1D #1D7132
square
#1D3271 #711D5C #715C1D #1D7132
split-complementary
#1D3271 #71321D #5C711D
monochromatic
#060B18 #111C40 #1D3271 #2948A2 #3C60CD

Accessibility & contrast

On white

12.02
#1D3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1D3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3271
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3271#FFFFFF#000000##FFFFFF
##1D32711.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053A73
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d3271;
/* rgb */ color: rgb(29, 50, 113);
/* oklch */ color: oklch(34.0% 0.112 266.5);
Tailwind
colors: {
  custom: {
    50: '#65699a',
    500: '#1d3271',
    950: '#000000',
  },
}
SCSS
$custom: #1d3271;
$custom-light: #65699a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3271",
  "rgb": {
    "r": 29,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 225,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33987,
    "c": 0.11213,
    "h": 266.5
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#1D3271
secondary
#A58D44
accent
#BB45E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1D3271

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

Preview Lab → · Contrast checker → · Palette generator →

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