#1C217B#1C217B

#1C217B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.149 H 271.7°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#1C217B
RGBrgb(28, 33, 123)
HSLhsl(237, 63%, 30%)
HSVhsv(237, 77%, 48%)
CMYKcmyk(77.2%, 73.2%, 0%, 51.8%)
CIE-LABlab(19.07, 30.99, -51.34)
CIE-LCHlch(19.07, 59.97, 301.11°)
OKLaboklab(31.52% 0.0045 -0.1486)
OKLCHoklch(31.52% 0.149 271.7)
XYZxyz(4.5967, 2.7642, 19.0263)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C217B #7B761C
analogous
#1C517B #1C217B #471C7B
triadic
#1C217B #7B1C21 #217B1C
tetradic
#1C217B #7B1C51 #7B761C #1C7B47
square
#1C217B #7B1C51 #7B761C #1C7B47
split-complementary
#1C217B #7B471C #517B1C
monochromatic
#060719 #111449 #1C217B #272EAD #3E46D3

Accessibility & contrast

On white

13.52
#1C217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1C217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C217B
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C217B#FFFFFF#000000##FFFFFF
##1C217B1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1c217b;
/* rgb */ color: rgb(28, 33, 123);
/* oklch */ color: oklch(31.5% 0.149 271.7);
Tailwind
colors: {
  custom: {
    50: '#695da2',
    500: '#1c217b',
    950: '#000000',
  },
}
SCSS
$custom: #1c217b;
$custom-light: #695da2;
$custom-dark: #000000;
JSON
{
  "hex": "#1c217b",
  "rgb": {
    "r": 28,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 236.842,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31522,
    "c": 0.14864,
    "h": 271.7
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#1C217B
secondary
#AFA944
accent
#DD42E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1C217B

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

Preview Lab → · Contrast checker → · Palette generator →

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