#1C218E#1C218E

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

Color values

HEX#1C218E
RGBrgb(28, 33, 142)
HSLhsl(237, 67%, 33%)
HSVhsv(237, 80%, 56%)
CMYKcmyk(80.3%, 76.8%, 0%, 44.3%)
CIE-LABlab(21.16, 37.85, -59.87)
CIE-LCHlch(21.16, 70.83, 302.30°)
OKLaboklab(33.63% 0.0015 -0.1734)
OKLCHoklch(33.63% 0.173 270.5)
XYZxyz(5.9036, 3.2869, 25.9092)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C218E #8E891C
analogous
#1C5A8E #1C218E #501C8E
triadic
#1C218E #8E1C21 #218E1C
tetradic
#1C218E #8E1C5A #8E891C #1C8E50
square
#1C218E #8E1C5A #8E891C #1C8E50
split-complementary
#1C218E #8E501C #5A8E1C
monochromatic
#080928 #12155B #1C218E #262DC1 #4950DB

Accessibility & contrast

On white

12.67
#1C218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C218E
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C218E#FFFFFF#000000##FFFFFF
##1C218E1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1c218e;
/* rgb */ color: rgb(28, 33, 142);
/* oklch */ color: oklch(33.6% 0.173 270.5);
Tailwind
colors: {
  custom: {
    50: '#6e5eb0',
    500: '#1c218e',
    950: '#000000',
  },
}
SCSS
$custom: #1c218e;
$custom-light: #6e5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1c218e",
  "rgb": {
    "r": 28,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 237.368,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33631,
    "c": 0.1734,
    "h": 270.5
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#1C218E
secondary
#BDB849
accent
#E23EEA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1C218E

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

Preview Lab → · Contrast checker → · Palette generator →

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