#1D236F#1D236F

#1D236F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.129 H 272.5°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#1D236F
RGBrgb(29, 35, 111)
HSLhsl(236, 59%, 27%)
HSVhsv(236, 74%, 44%)
CMYKcmyk(73.9%, 68.5%, 0%, 56.5%)
CIE-LABlab(18.41, 25.24, -44.72)
CIE-LCHlch(18.41, 51.35, 299.45°)
OKLaboklab(30.69% 0.0058 -0.1292)
OKLCHoklch(30.69% 0.129 272.5)
XYZxyz(3.9760, 2.6106, 15.3302)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D236F #6F691D
analogous
#1D4C6F #1D236F #401D6F
triadic
#1D236F #6F1D23 #236F1D
tetradic
#1D236F #6F1D4C #6F691D #1D6F40
square
#1D236F #6F1D4C #6F691D #1D6F40
split-complementary
#1D236F #6F401D #4C6F1D
monochromatic
#060818 #10143E #1D236F #2A32A0 #3B45CC

Accessibility & contrast

On white

13.80
#1D236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D236F
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D236F#FFFFFF#000000##FFFFFF
##1D236F1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d236f;
/* rgb */ color: rgb(29, 35, 111);
/* oklch */ color: oklch(30.7% 0.129 272.5);
Tailwind
colors: {
  custom: {
    50: '#665e99',
    500: '#1d236f',
    950: '#000000',
  },
}
SCSS
$custom: #1d236f;
$custom-light: #665e99;
$custom-dark: #000000;
JSON
{
  "hex": "#1d236f",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 235.61,
    "s": 58.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30689,
    "c": 0.12931,
    "h": 272.5
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#1D236F
secondary
#A39C44
accent
#D646E2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1D236F

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

Preview Lab → · Contrast checker → · Palette generator →

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