#1C217F#1C217F

#1C217F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.154 H 271.5°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#1C217F
RGBrgb(28, 33, 127)
HSLhsl(237, 64%, 30%)
HSVhsv(237, 78%, 50%)
CMYKcmyk(78%, 74%, 0%, 50.2%)
CIE-LABlab(19.50, 32.46, -53.18)
CIE-LCHlch(19.50, 62.31, 301.40°)
OKLaboklab(31.96% 0.0039 -0.1539)
OKLCHoklch(31.96% 0.154 271.5)
XYZxyz(4.8522, 2.8664, 20.3721)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C217F #7F7A1C
analogous
#1C527F #1C217F #491C7F
triadic
#1C217F #7F1C21 #217F1C
tetradic
#1C217F #7F1C52 #7F7A1C #1C7F49
square
#1C217F #7F1C52 #7F7A1C #1C7F49
split-complementary
#1C217F #7F491C #527F1C
monochromatic
#06071B #11144D #1C217F #272EB1 #4048D5

Accessibility & contrast

On white

13.35
#1C217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C217F
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C217F#FFFFFF#000000##FFFFFF
##1C217F1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1c217f;
/* rgb */ color: rgb(28, 33, 127);
/* oklch */ color: oklch(32.0% 0.154 271.5);
Tailwind
colors: {
  custom: {
    50: '#6a5da5',
    500: '#1c217f',
    950: '#000000',
  },
}
SCSS
$custom: #1c217f;
$custom-light: #6a5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#1c217f",
  "rgb": {
    "r": 28,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 236.97,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31957,
    "c": 0.15399,
    "h": 271.5
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#1C217F
secondary
#B3AD44
accent
#DF41E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1C217F

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

Preview Lab → · Contrast checker → · Palette generator →

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