#1D335E#1D335E

#1D335E is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.7% C 0.081 H 262.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#1D335E
RGBrgb(29, 51, 94)
HSLhsl(220, 53%, 24%)
HSVhsv(220, 69%, 37%)
CMYKcmyk(69.1%, 45.7%, 0%, 63.1%)
CIE-LABlab(21.71, 7.05, -28.28)
CIE-LCHlch(21.71, 29.15, 284.00°)
OKLaboklab(32.74% -0.0108 -0.0807)
OKLCHoklch(32.74% 0.081 262.4)
XYZxyz(3.7102, 3.4367, 11.0553)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D335E #5E481D
analogous
#1D545E #1D335E #281D5E
triadic
#1D335E #5E1D33 #335E1D
tetradic
#1D335E #5E1D54 #5E481D #1D5E28
square
#1D335E #5E1D54 #5E481D #1D5E28
split-complementary
#1D335E #5E281D #545E1D
monochromatic
#070D17 #0F1A2F #1D335E #2B4C8D #3A66BC

Accessibility & contrast

On white

12.45
#1D335E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1D335E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D335E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D335E#FFFFFF#000000##FFFFFF
##1D335E1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3760
Deuteranopia (green-blind)
#15315D
Tritanopia (blue-blind)
#003D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d335e;
/* rgb */ color: rgb(29, 51, 94);
/* oklch */ color: oklch(32.7% 0.081 262.4);
Tailwind
colors: {
  custom: {
    50: '#616a8c',
    500: '#1d335e',
    950: '#000000',
  },
}
SCSS
$custom: #1d335e;
$custom-light: #616a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d335e",
  "rgb": {
    "r": 29,
    "g": 51,
    "b": 94
  },
  "hsl": {
    "h": 219.692,
    "s": 52.846,
    "l": 24.118
  },
  "oklch": {
    "l": 0.32741,
    "c": 0.08138,
    "h": 262.4
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#1D335E
secondary
#937844
accent
#AB4CDC
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #1D335E

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

Preview Lab → · Contrast checker → · Palette generator →

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