#1D227D#1D227D

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

Color values

HEX#1D227D
RGBrgb(29, 34, 125)
HSLhsl(237, 62%, 30%)
HSVhsv(237, 77%, 49%)
CMYKcmyk(76.8%, 72.8%, 0%, 51%)
CIE-LABlab(19.58, 31.19, -51.78)
CIE-LCHlch(19.58, 60.45, 301.06°)
OKLaboklab(31.97% 0.0048 -0.1498)
OKLCHoklch(31.97% 0.15 271.8)
XYZxyz(4.7791, 2.8854, 19.7031)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D227D #7D781D
analogous
#1D527D #1D227D #481D7D
triadic
#1D227D #7D1D22 #227D1D
tetradic
#1D227D #7D1D52 #7D781D #1D7D48
square
#1D227D #7D1D52 #7D781D #1D7D48
split-complementary
#1D227D #7D481D #527D1D
monochromatic
#06071A #11144B #1D227D #2930AF #4149D3

Accessibility & contrast

On white

13.31
#1D227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D227D
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D227D#FFFFFF#000000##FFFFFF
##1D227D1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d227d;
/* rgb */ color: rgb(29, 34, 125);
/* oklch */ color: oklch(32.0% 0.150 271.8);
Tailwind
colors: {
  custom: {
    50: '#6a5da4',
    500: '#1d227d',
    950: '#000000',
  },
}
SCSS
$custom: #1d227d;
$custom-light: #6a5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d227d",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 236.875,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31965,
    "c": 0.14991,
    "h": 271.8
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#1D227D
secondary
#B1AB45
accent
#DD42E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D227D

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

Preview Lab → · Contrast checker → · Palette generator →

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