#1D228D#1D228D

#1D228D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.171 H 270.8°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#1D228D
RGBrgb(29, 34, 141)
HSLhsl(237, 66%, 33%)
HSVhsv(237, 79%, 55%)
CMYKcmyk(79.4%, 75.9%, 0%, 44.7%)
CIE-LABlab(21.31, 36.98, -58.99)
CIE-LCHlch(21.31, 69.62, 302.08°)
OKLaboklab(33.72% 0.0024 -0.1708)
OKLCHoklch(33.72% 0.171 270.8)
XYZxyz(5.8848, 3.3277, 25.5263)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D228D #8D881D
analogous
#1D5A8D #1D228D #501D8D
triadic
#1D228D #8D1D22 #228D1D
tetradic
#1D228D #8D1D5A #8D881D #1D8D50
square
#1D228D #8D1D5A #8D881D #1D8D50
split-complementary
#1D228D #8D501D #5A8D1D
monochromatic
#080A27 #13165A #1D228D #272EC0 #4B51DA

Accessibility & contrast

On white

12.61
#1D228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1D228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D228D
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D228D#FFFFFF#000000##FFFFFF
##1D228D1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d228d;
/* rgb */ color: rgb(29, 34, 141);
/* oklch */ color: oklch(33.7% 0.171 270.8);
Tailwind
colors: {
  custom: {
    50: '#6e5eb0',
    500: '#1d228d',
    950: '#000000',
  },
}
SCSS
$custom: #1d228d;
$custom-light: #6e5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d228d",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 237.321,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33721,
    "c": 0.17085,
    "h": 270.8
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#1D228D
secondary
#BCB74A
accent
#E13FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D228D

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

Preview Lab → · Contrast checker → · Palette generator →

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