#1D236E#1D236E

#1D236E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.128 H 272.6°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#1D236E
RGBrgb(29, 35, 110)
HSLhsl(236, 58%, 27%)
HSVhsv(236, 74%, 43%)
CMYKcmyk(73.6%, 68.2%, 0%, 56.9%)
CIE-LABlab(18.32, 24.86, -44.23)
CIE-LCHlch(18.32, 50.73, 299.34°)
OKLaboklab(30.59% 0.0058 -0.1277)
OKLCHoklch(30.59% 0.128 272.6)
XYZxyz(3.9213, 2.5887, 15.0418)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D236E #6E681D
analogous
#1D4B6E #1D236E #401D6E
triadic
#1D236E #6E1D23 #236E1D
tetradic
#1D236E #6E1D4B #6E681D #1D6E40
square
#1D236E #6E1D4B #6E681D #1D6E40
split-complementary
#1D236E #6E401D #4B6E1D
monochromatic
#060818 #10143E #1D236E #2A329E #3A45CB

Accessibility & contrast

On white

13.84
#1D236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1D236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D236E
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D236E#FFFFFF#000000##FFFFFF
##1D236E1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d236e;
/* rgb */ color: rgb(29, 35, 110);
/* oklch */ color: oklch(30.6% 0.128 272.6);
Tailwind
colors: {
  custom: {
    50: '#665e98',
    500: '#1d236e',
    950: '#000000',
  },
}
SCSS
$custom: #1d236e;
$custom-light: #665e98;
$custom-dark: #000000;
JSON
{
  "hex": "#1d236e",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 235.556,
    "s": 58.273,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30589,
    "c": 0.12787,
    "h": 272.6
  },
  "luminance": 0.02589
}

Semantic roles & 50–950 ramp

primary
#1D236E
secondary
#A29C44
accent
#D646E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1D236E

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

Preview Lab → · Contrast checker → · Palette generator →

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