#1D3197#1D3197

#1D3197 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.167 H 268.0°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#1D3197
RGBrgb(29, 49, 151)
HSLhsl(230, 68%, 35%)
HSVhsv(230, 81%, 59%)
CMYKcmyk(80.8%, 67.5%, 0%, 40.8%)
CIE-LABlab(25.84, 31.12, -57.72)
CIE-LCHlch(25.84, 65.57, 298.33°)
OKLaboklab(37.3% -0.0059 -0.1671)
OKLCHoklch(37.3% 0.167 268)
XYZxyz(7.1890, 4.6914, 29.7988)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3197 #97831D
analogous
#1D6E97 #1D3197 #461D97
triadic
#1D3197 #971D31 #31971D
tetradic
#1D3197 #971D6E #97831D #1D9746
square
#1D3197 #971D6E #97831D #1D9746
split-complementary
#1D3197 #97461D #6E971D
monochromatic
#091030 #132064 #1D3197 #2742CA #5168DE

Accessibility & contrast

On white

10.83
#1D3197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1D3197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3197
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3197#FFFFFF#000000##FFFFFF
##1D31971.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1d3197;
/* rgb */ color: rgb(29, 49, 151);
/* oklch */ color: oklch(37.3% 0.167 268.0);
Tailwind
colors: {
  custom: {
    50: '#6f69b7',
    500: '#1d3197',
    950: '#000000',
  },
}
SCSS
$custom: #1d3197;
$custom-light: #6f69b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3197",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 230.164,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37299,
    "c": 0.16722,
    "h": 268
  },
  "luminance": 0.04692
}

Semantic roles & 50–950 ramp

primary
#1D3197
secondary
#C0AE4F
accent
#CE3DEB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1D3197

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

Preview Lab → · Contrast checker → · Palette generator →

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