#1D228B#1D228B

#1D228B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.168 H 270.9°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#1D228B
RGBrgb(29, 34, 139)
HSLhsl(237, 65%, 33%)
HSVhsv(237, 79%, 55%)
CMYKcmyk(79.1%, 75.5%, 0%, 45.5%)
CIE-LABlab(21.09, 36.27, -58.11)
CIE-LCHlch(21.09, 68.50, 301.97°)
OKLaboklab(33.5% 0.0027 -0.1683)
OKLCHoklch(33.5% 0.168 270.9)
XYZxyz(5.7373, 3.2687, 24.7496)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D228B #8B861D
analogous
#1D598B #1D228B #4F1D8B
triadic
#1D228B #8B1D22 #228B1D
tetradic
#1D228B #8B1D59 #8B861D #1D8B4F
square
#1D228B #8B1D59 #8B861D #1D8B4F
split-complementary
#1D228B #8B4F1D #598B1D
monochromatic
#080926 #121658 #1D228B #282EBE #4950D9

Accessibility & contrast

On white

12.70
#1D228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1D228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D228B
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D228B#FFFFFF#000000##FFFFFF
##1D228B1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d228b;
/* rgb */ color: rgb(29, 34, 139);
/* oklch */ color: oklch(33.5% 0.168 270.9);
Tailwind
colors: {
  custom: {
    50: '#6e5eae',
    500: '#1d228b',
    950: '#000000',
  },
}
SCSS
$custom: #1d228b;
$custom-light: #6e5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d228b",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 237.273,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33498,
    "c": 0.16828,
    "h": 270.9
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#1D228B
secondary
#BBB649
accent
#E13FE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D228B

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

Preview Lab → · Contrast checker → · Palette generator →

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