#1D236D#1D236D

#1D236D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.126 H 272.7°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#1D236D
RGBrgb(29, 35, 109)
HSLhsl(236, 58%, 27%)
HSVhsv(236, 73%, 43%)
CMYKcmyk(73.4%, 67.9%, 0%, 57.3%)
CIE-LABlab(18.22, 24.47, -43.73)
CIE-LCHlch(18.22, 50.12, 299.23°)
OKLaboklab(30.49% 0.0059 -0.1263)
OKLCHoklch(30.49% 0.126 272.7)
XYZxyz(3.8671, 2.5670, 14.7567)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D236D #6D671D
analogous
#1D4B6D #1D236D #3F1D6D
triadic
#1D236D #6D1D23 #236D1D
tetradic
#1D236D #6D1D4B #6D671D #1D6D3F
square
#1D236D #6D1D4B #6D671D #1D6D3F
split-complementary
#1D236D #6D3F1D #4B6D1D
monochromatic
#060818 #10133D #1D236D #2A339D #3A45CB

Accessibility & contrast

On white

13.88
#1D236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1D236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D236D
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D236D#FFFFFF#000000##FFFFFF
##1D236D1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d236d;
/* rgb */ color: rgb(29, 35, 109);
/* oklch */ color: oklch(30.5% 0.126 272.7);
Tailwind
colors: {
  custom: {
    50: '#665e98',
    500: '#1d236d',
    950: '#000000',
  },
}
SCSS
$custom: #1d236d;
$custom-light: #665e98;
$custom-dark: #000000;
JSON
{
  "hex": "#1d236d",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 235.5,
    "s": 57.971,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30489,
    "c": 0.12644,
    "h": 272.7
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#1D236D
secondary
#A29B44
accent
#D647E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1D236D

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

Preview Lab → · Contrast checker → · Palette generator →

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