#1D227C#1D227C

#1D227C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.149 H 271.9°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#1D227C
RGBrgb(29, 34, 124)
HSLhsl(237, 62%, 30%)
HSVhsv(237, 77%, 49%)
CMYKcmyk(76.6%, 72.6%, 0%, 51.4%)
CIE-LABlab(19.47, 30.82, -51.32)
CIE-LCHlch(19.47, 59.86, 300.99°)
OKLaboklab(31.86% 0.005 -0.1485)
OKLCHoklch(31.86% 0.149 271.9)
XYZxyz(4.7156, 2.8600, 19.3684)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D227C #7C771D
analogous
#1D527C #1D227C #471D7C
triadic
#1D227C #7C1D22 #227C1D
tetradic
#1D227C #7C1D52 #7C771D #1D7C47
square
#1D227C #7C1D52 #7C771D #1D7C47
split-complementary
#1D227C #7C471D #527C1D
monochromatic
#060719 #11144A #1D227C #2930AE #4149D3

Accessibility & contrast

On white

13.36
#1D227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1D227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D227C
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D227C#FFFFFF#000000##FFFFFF
##1D227C1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d227c;
/* rgb */ color: rgb(29, 34, 124);
/* oklch */ color: oklch(31.9% 0.149 271.9);
Tailwind
colors: {
  custom: {
    50: '#6a5da3',
    500: '#1d227c',
    950: '#000000',
  },
}
SCSS
$custom: #1d227c;
$custom-light: #6a5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d227c",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 236.842,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.31858,
    "c": 0.14856,
    "h": 271.9
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#1D227C
secondary
#B0AA45
accent
#DD43E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D227C

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

Preview Lab → · Contrast checker → · Palette generator →

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