#1D237C#1D237C

#1D237C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.147 H 271.7°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#1D237C
RGBrgb(29, 35, 124)
HSLhsl(236, 62%, 30%)
HSVhsv(236, 77%, 49%)
CMYKcmyk(76.6%, 71.8%, 0%, 51.4%)
CIE-LABlab(19.71, 30.17, -50.93)
CIE-LCHlch(19.71, 59.19, 300.64°)
OKLaboklab(32.03% 0.0044 -0.1473)
OKLCHoklch(32.03% 0.147 271.7)
XYZxyz(4.7446, 2.9180, 19.3781)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D237C #7C761D
analogous
#1D527C #1D237C #471D7C
triadic
#1D237C #7C1D23 #237C1D
tetradic
#1D237C #7C1D52 #7C761D #1D7C47
square
#1D237C #7C1D52 #7C761D #1D7C47
split-complementary
#1D237C #7C471D #527C1D
monochromatic
#060719 #11154A #1D237C #2931AE #414AD3

Accessibility & contrast

On white

13.26
#1D237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1D237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D237C
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D237C#FFFFFF#000000##FFFFFF
##1D237C1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d237c;
/* rgb */ color: rgb(29, 35, 124);
/* oklch */ color: oklch(32.0% 0.147 271.7);
Tailwind
colors: {
  custom: {
    50: '#695ea3',
    500: '#1d237c',
    950: '#000000',
  },
}
SCSS
$custom: #1d237c;
$custom-light: #695ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d237c",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 236.211,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.3203,
    "c": 0.14739,
    "h": 271.7
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

primary
#1D237C
secondary
#B0A945
accent
#DB43E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D237C

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

Preview Lab → · Contrast checker → · Palette generator →

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