#1D227B#1D227B

#1D227B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.147 H 272.0°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#1D227B
RGBrgb(29, 34, 123)
HSLhsl(237, 62%, 30%)
HSVhsv(237, 76%, 48%)
CMYKcmyk(76.4%, 72.4%, 0%, 51.8%)
CIE-LABlab(19.37, 30.45, -50.85)
CIE-LCHlch(19.37, 59.27, 300.91°)
OKLaboklab(31.75% 0.0051 -0.1471)
OKLCHoklch(31.75% 0.147 272)
XYZxyz(4.6527, 2.8348, 19.0370)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D227B #7B761D
analogous
#1D517B #1D227B #471D7B
triadic
#1D227B #7B1D22 #227B1D
tetradic
#1D227B #7B1D51 #7B761D #1D7B47
square
#1D227B #7B1D51 #7B761D #1D7B47
split-complementary
#1D227B #7B471D #517B1D
monochromatic
#060719 #111449 #1D227B #2930AD #4048D2

Accessibility & contrast

On white

13.40
#1D227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D227B
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D227B#FFFFFF#000000##FFFFFF
##1D227B1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d227b;
/* rgb */ color: rgb(29, 34, 123);
/* oklch */ color: oklch(31.8% 0.147 272.0);
Tailwind
colors: {
  custom: {
    50: '#695da2',
    500: '#1d227b',
    950: '#000000',
  },
}
SCSS
$custom: #1d227b;
$custom-light: #695da2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d227b",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 236.809,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31751,
    "c": 0.14721,
    "h": 272
  },
  "luminance": 0.02835
}

Semantic roles & 50–950 ramp

primary
#1D227B
secondary
#AFA945
accent
#DC43E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D227B

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

Preview Lab → · Contrast checker → · Palette generator →

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