#1D218F#1D218F

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

Color values

HEX#1D218F
RGBrgb(29, 33, 143)
HSLhsl(238, 66%, 34%)
HSVhsv(238, 80%, 56%)
CMYKcmyk(79.7%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.32, 38.28, -60.21)
CIE-LCHlch(21.32, 71.35, 302.44°)
OKLaboklab(33.8% 0.0024 -0.1744)
OKLCHoklch(33.8% 0.174 270.8)
XYZxyz(6.0068, 3.3314, 26.3077)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D218F #8F8B1D
analogous
#1D5A8F #1D218F #521D8F
triadic
#1D218F #8F1D21 #218F1D
tetradic
#1D218F #8F1D5A #8F8B1D #1D8F52
square
#1D218F #8F1D5A #8F8B1D #1D8F52
split-complementary
#1D218F #8F521D #5A8F1D
monochromatic
#080A29 #13155C #1D218F #272DC2 #4C51DB

Accessibility & contrast

On white

12.60
#1D218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D218F
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D218F#FFFFFF#000000##FFFFFF
##1D218F1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d218f;
/* rgb */ color: rgb(29, 33, 143);
/* oklch */ color: oklch(33.8% 0.174 270.8);
Tailwind
colors: {
  custom: {
    50: '#6f5eb1',
    500: '#1d218f',
    950: '#000000',
  },
}
SCSS
$custom: #1d218f;
$custom-light: #6f5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d218f",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 237.895,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33797,
    "c": 0.17439,
    "h": 270.8
  },
  "luminance": 0.03332
}

Semantic roles & 50–950 ramp

primary
#1D218F
secondary
#BDB94B
accent
#E33FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D218F

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

Preview Lab → · Contrast checker → · Palette generator →

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