#1C217D#1C217D

#1C217D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.151 H 271.6°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#1C217D
RGBrgb(28, 33, 125)
HSLhsl(237, 63%, 30%)
HSVhsv(237, 78%, 49%)
CMYKcmyk(77.6%, 73.6%, 0%, 51%)
CIE-LABlab(19.29, 31.73, -52.26)
CIE-LCHlch(19.29, 61.14, 301.26°)
OKLaboklab(31.74% 0.0042 -0.1513)
OKLCHoklch(31.74% 0.151 271.6)
XYZxyz(4.7232, 2.8148, 19.6924)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C217D #7D781C
analogous
#1C527D #1C217D #471C7D
triadic
#1C217D #7D1C21 #217D1C
tetradic
#1C217D #7D1C52 #7D781C #1C7D47
square
#1C217D #7D1C52 #7D781C #1C7D47
split-complementary
#1C217D #7D471C #527D1C
monochromatic
#060719 #11144B #1C217D #272EAF #3F47D4

Accessibility & contrast

On white

13.44
#1C217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1C217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C217D
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C217D#FFFFFF#000000##FFFFFF
##1C217D1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1c217d;
/* rgb */ color: rgb(28, 33, 125);
/* oklch */ color: oklch(31.7% 0.151 271.6);
Tailwind
colors: {
  custom: {
    50: '#6a5da4',
    500: '#1c217d',
    950: '#000000',
  },
}
SCSS
$custom: #1c217d;
$custom-light: #6a5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1c217d",
  "rgb": {
    "r": 28,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 236.907,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.31739,
    "c": 0.15132,
    "h": 271.6
  },
  "luminance": 0.02815
}

Semantic roles & 50–950 ramp

primary
#1C217D
secondary
#B1AB44
accent
#DE41E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1C217D

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

Preview Lab → · Contrast checker → · Palette generator →

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