#1D227E#1D227E

#1D227E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.151 H 271.8°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#1D227E
RGBrgb(29, 34, 126)
HSLhsl(237, 63%, 30%)
HSVhsv(237, 77%, 49%)
CMYKcmyk(77%, 73%, 0%, 50.6%)
CIE-LABlab(19.68, 31.56, -52.24)
CIE-LCHlch(19.68, 61.03, 301.13°)
OKLaboklab(32.07% 0.0047 -0.1512)
OKLCHoklch(32.07% 0.151 271.8)
XYZxyz(4.8433, 2.9111, 20.0413)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D227E #7E791D
analogous
#1D527E #1D227E #481D7E
triadic
#1D227E #7E1D22 #227E1D
tetradic
#1D227E #7E1D52 #7E791D #1D7E48
square
#1D227E #7E1D52 #7E791D #1D7E48
split-complementary
#1D227E #7E481D #527E1D
monochromatic
#06071B #12154C #1D227E #282FB0 #4249D3

Accessibility & contrast

On white

13.27
#1D227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D227E
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D227E#FFFFFF#000000##FFFFFF
##1D227E1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d227e;
/* rgb */ color: rgb(29, 34, 126);
/* oklch */ color: oklch(32.1% 0.151 271.8);
Tailwind
colors: {
  custom: {
    50: '#6a5ea4',
    500: '#1d227e',
    950: '#000000',
  },
}
SCSS
$custom: #1d227e;
$custom-light: #6a5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d227e",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 236.907,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32072,
    "c": 0.15125,
    "h": 271.8
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#1D227E
secondary
#B1AC45
accent
#DD42E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1D227E

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

Preview Lab → · Contrast checker → · Palette generator →

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