#1C218D#1C218D

#1C218D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.172 H 270.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#1C218D
RGBrgb(28, 33, 141)
HSLhsl(237, 67%, 33%)
HSVhsv(237, 80%, 55%)
CMYKcmyk(80.1%, 76.6%, 0%, 44.7%)
CIE-LABlab(21.05, 37.50, -59.43)
CIE-LCHlch(21.05, 70.27, 302.25°)
OKLaboklab(33.52% 0.0017 -0.1721)
OKLCHoklch(33.52% 0.172 270.5)
XYZxyz(5.8288, 3.2570, 25.5156)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C218D #8D881C
analogous
#1C598D #1C218D #4F1C8D
triadic
#1C218D #8D1C21 #218D1C
tetradic
#1C218D #8D1C59 #8D881C #1C8D4F
square
#1C218D #8D1C59 #8D881C #1C8D4F
split-complementary
#1C218D #8D4F1C #598D1C
monochromatic
#080927 #12155A #1C218D #262DC0 #494FDB

Accessibility & contrast

On white

12.71
#1C218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1C218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C218D
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C218D#FFFFFF#000000##FFFFFF
##1C218D1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1c218d;
/* rgb */ color: rgb(28, 33, 141);
/* oklch */ color: oklch(33.5% 0.172 270.5);
Tailwind
colors: {
  custom: {
    50: '#6e5eb0',
    500: '#1c218d',
    950: '#000000',
  },
}
SCSS
$custom: #1c218d;
$custom-light: #6e5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1c218d",
  "rgb": {
    "r": 28,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 237.345,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33518,
    "c": 0.17213,
    "h": 270.5
  },
  "luminance": 0.03258
}

Semantic roles & 50–950 ramp

primary
#1C218D
secondary
#BDB848
accent
#E23EEA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #1C218D

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

Preview Lab → · Contrast checker → · Palette generator →

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