#1D3297#1D3297

#1D3297 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.166 H 267.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#1D3297
RGBrgb(29, 50, 151)
HSLhsl(230, 68%, 35%)
HSVhsv(230, 81%, 59%)
CMYKcmyk(80.8%, 66.9%, 0%, 40.8%)
CIE-LABlab(26.09, 30.46, -57.31)
CIE-LCHlch(26.09, 64.90, 297.99°)
OKLaboklab(37.48% -0.0064 -0.1659)
OKLCHoklch(37.48% 0.166 267.8)
XYZxyz(7.2313, 4.7759, 29.8129)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3297 #97821D
analogous
#1D6F97 #1D3297 #451D97
triadic
#1D3297 #971D32 #32971D
tetradic
#1D3297 #971D6F #97821D #1D9745
square
#1D3297 #971D6F #97821D #1D9745
split-complementary
#1D3297 #97451D #6F971D
monochromatic
#091030 #132164 #1D3297 #2743CA #5169DE

Accessibility & contrast

On white

10.74
#1D3297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1D3297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3297
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3297#FFFFFF#000000##FFFFFF
##1D32971.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1d3297;
/* rgb */ color: rgb(29, 50, 151);
/* oklch */ color: oklch(37.5% 0.166 267.8);
Tailwind
colors: {
  custom: {
    50: '#6f6ab7',
    500: '#1d3297',
    950: '#000000',
  },
}
SCSS
$custom: #1d3297;
$custom-light: #6f6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3297",
  "rgb": {
    "r": 29,
    "g": 50,
    "b": 151
  },
  "hsl": {
    "h": 229.672,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37482,
    "c": 0.16603,
    "h": 267.8
  },
  "luminance": 0.04777
}

Semantic roles & 50–950 ramp

primary
#1D3297
secondary
#C0AD4F
accent
#CD3DEB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1D3297

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

Preview Lab → · Contrast checker → · Palette generator →

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