#1D227A#1D227A

#1D227A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.146 H 272.1°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#1D227A
RGBrgb(29, 34, 122)
HSLhsl(237, 62%, 30%)
HSVhsv(237, 76%, 48%)
CMYKcmyk(76.2%, 72.1%, 0%, 52.2%)
CIE-LABlab(19.27, 30.08, -50.39)
CIE-LCHlch(19.27, 58.68, 300.83°)
OKLaboklab(31.65% 0.0052 -0.1458)
OKLCHoklch(31.65% 0.146 272.1)
XYZxyz(4.5904, 2.8099, 18.7090)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D227A #7A751D
analogous
#1D517A #1D227A #471D7A
triadic
#1D227A #7A1D22 #227A1D
tetradic
#1D227A #7A1D51 #7A751D #1D7A47
square
#1D227A #7A1D51 #7A751D #1D7A47
split-complementary
#1D227A #7A471D #517A1D
monochromatic
#060719 #111449 #1D227A #2930AB #4048D2

Accessibility & contrast

On white

13.44
#1D227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1D227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D227A
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D227A#FFFFFF#000000##FFFFFF
##1D227A1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d227a;
/* rgb */ color: rgb(29, 34, 122);
/* oklch */ color: oklch(31.6% 0.146 272.1);
Tailwind
colors: {
  custom: {
    50: '#695da1',
    500: '#1d227a',
    950: '#000000',
  },
}
SCSS
$custom: #1d227a;
$custom-light: #695da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d227a",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 236.774,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31645,
    "c": 0.14585,
    "h": 272.1
  },
  "luminance": 0.0281
}

Semantic roles & 50–950 ramp

primary
#1D227A
secondary
#AEA845
accent
#DC43E5
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D227A

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

Preview Lab → · Contrast checker → · Palette generator →

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