#1C217E#1C217E

#1C217E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.153 H 271.5°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#1C217E
RGBrgb(28, 33, 126)
HSLhsl(237, 64%, 30%)
HSVhsv(237, 78%, 49%)
CMYKcmyk(77.8%, 73.8%, 0%, 50.6%)
CIE-LABlab(19.39, 32.10, -52.72)
CIE-LCHlch(19.39, 61.73, 301.33°)
OKLaboklab(31.85% 0.0041 -0.1526)
OKLCHoklch(31.85% 0.153 271.5)
XYZxyz(4.7874, 2.8404, 20.0306)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C217E #7E791C
analogous
#1C527E #1C217E #481C7E
triadic
#1C217E #7E1C21 #217E1C
tetradic
#1C217E #7E1C52 #7E791C #1C7E48
square
#1C217E #7E1C52 #7E791C #1C7E48
split-complementary
#1C217E #7E481C #527E1C
monochromatic
#06071A #11144C #1C217E #272EB0 #4047D5

Accessibility & contrast

On white

13.39
#1C217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1C217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C217E
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C217E#FFFFFF#000000##FFFFFF
##1C217E1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1c217e;
/* rgb */ color: rgb(28, 33, 126);
/* oklch */ color: oklch(31.8% 0.153 271.5);
Tailwind
colors: {
  custom: {
    50: '#6a5da4',
    500: '#1c217e',
    950: '#000000',
  },
}
SCSS
$custom: #1c217e;
$custom-light: #6a5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1c217e",
  "rgb": {
    "r": 28,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 236.939,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31847,
    "c": 0.15265,
    "h": 271.5
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#1C217E
secondary
#B2AC44
accent
#DE41E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1C217E

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

Preview Lab → · Contrast checker → · Palette generator →

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