#1D228A#1D228A

#1D228A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.167 H 271.0°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#1D228A
RGBrgb(29, 34, 138)
HSLhsl(237, 65%, 33%)
HSVhsv(237, 79%, 54%)
CMYKcmyk(79%, 75.4%, 0%, 45.9%)
CIE-LABlab(20.98, 35.91, -57.67)
CIE-LCHlch(20.98, 67.94, 301.91°)
OKLaboklab(33.39% 0.0029 -0.167)
OKLCHoklch(33.39% 0.167 271)
XYZxyz(5.6646, 3.2396, 24.3666)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D228A #8A851D
analogous
#1D588A #1D228A #4F1D8A
triadic
#1D228A #8A1D22 #228A1D
tetradic
#1D228A #8A1D58 #8A851D #1D8A4F
square
#1D228A #8A1D58 #8A851D #1D8A4F
split-complementary
#1D228A #8A4F1D #588A1D
monochromatic
#080925 #121657 #1D228A #282EBD #494FD9

Accessibility & contrast

On white

12.74
#1D228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D228A
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D228A#FFFFFF#000000##FFFFFF
##1D228A1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d228a;
/* rgb */ color: rgb(29, 34, 138);
/* oklch */ color: oklch(33.4% 0.167 271.0);
Tailwind
colors: {
  custom: {
    50: '#6d5ead',
    500: '#1d228a',
    950: '#000000',
  },
}
SCSS
$custom: #1d228a;
$custom-light: #6d5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#1d228a",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 237.248,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33386,
    "c": 0.167,
    "h": 271
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

primary
#1D228A
secondary
#BBB648
accent
#E040E8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D228A

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

Preview Lab → · Contrast checker → · Palette generator →

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