#1D228C#1D228C

#1D228C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.170 H 270.9°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#1D228C
RGBrgb(29, 34, 140)
HSLhsl(237, 66%, 33%)
HSVhsv(237, 79%, 55%)
CMYKcmyk(79.3%, 75.7%, 0%, 45.1%)
CIE-LABlab(21.20, 36.62, -58.55)
CIE-LCHlch(21.20, 69.06, 302.03°)
OKLaboklab(33.61% 0.0025 -0.1695)
OKLCHoklch(33.61% 0.17 270.9)
XYZxyz(5.8107, 3.2981, 25.1362)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D228C #8C871D
analogous
#1D598C #1D228C #4F1D8C
triadic
#1D228C #8C1D22 #228C1D
tetradic
#1D228C #8C1D59 #8C871D #1D8C4F
square
#1D228C #8C1D59 #8C871D #1D8C4F
split-complementary
#1D228C #8C4F1D #598C1D
monochromatic
#080927 #121659 #1D228C #282EBF #4A50D9

Accessibility & contrast

On white

12.65
#1D228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1D228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D228C
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D228C#FFFFFF#000000##FFFFFF
##1D228C1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d228c;
/* rgb */ color: rgb(29, 34, 140);
/* oklch */ color: oklch(33.6% 0.170 270.9);
Tailwind
colors: {
  custom: {
    50: '#6e5eaf',
    500: '#1d228c',
    950: '#000000',
  },
}
SCSS
$custom: #1d228c;
$custom-light: #6e5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1d228c",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 237.297,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33609,
    "c": 0.16957,
    "h": 270.9
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#1D228C
secondary
#BCB749
accent
#E13FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D228C

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

Preview Lab → · Contrast checker → · Palette generator →

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