#1D227F#1D227F

#1D227F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.153 H 271.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#1D227F
RGBrgb(29, 34, 127)
HSLhsl(237, 63%, 31%)
HSVhsv(237, 77%, 50%)
CMYKcmyk(77.2%, 73.2%, 0%, 50.2%)
CIE-LABlab(19.79, 31.93, -52.70)
CIE-LCHlch(19.79, 61.62, 301.21°)
OKLaboklab(32.18% 0.0045 -0.1525)
OKLCHoklch(32.18% 0.153 271.7)
XYZxyz(4.9082, 2.9371, 20.3828)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D227F #7F7A1D
analogous
#1D537F #1D227F #491D7F
triadic
#1D227F #7F1D22 #227F1D
tetradic
#1D227F #7F1D53 #7F7A1D #1D7F49
square
#1D227F #7F1D53 #7F7A1D #1D7F49
split-complementary
#1D227F #7F491D #537F1D
monochromatic
#06071B #12154D #1D227F #282FB1 #424AD4

Accessibility & contrast

On white

13.23
#1D227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1D227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D227F
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D227F#FFFFFF#000000##FFFFFF
##1D227F1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d227f;
/* rgb */ color: rgb(29, 34, 127);
/* oklch */ color: oklch(32.2% 0.153 271.7);
Tailwind
colors: {
  custom: {
    50: '#6a5ea5',
    500: '#1d227f',
    950: '#000000',
  },
}
SCSS
$custom: #1d227f;
$custom-light: #6a5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d227f",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 236.939,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3218,
    "c": 0.15259,
    "h": 271.7
  },
  "luminance": 0.02938
}

Semantic roles & 50–950 ramp

primary
#1D227F
secondary
#B2AD45
accent
#DE42E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1D227F

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

Preview Lab → · Contrast checker → · Palette generator →

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