#1C218C#1C218C

#1C218C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.171 H 270.6°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1C218C
RGBrgb(28, 33, 140)
HSLhsl(237, 67%, 33%)
HSVhsv(237, 80%, 55%)
CMYKcmyk(80%, 76.4%, 0%, 45.1%)
CIE-LABlab(20.93, 37.14, -59.00)
CIE-LCHlch(20.93, 69.72, 302.19°)
OKLaboklab(33.4% 0.0018 -0.1708)
OKLCHoklch(33.4% 0.171 270.6)
XYZxyz(5.7548, 3.2274, 25.1255)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C218C #8C871C
analogous
#1C598C #1C218C #4F1C8C
triadic
#1C218C #8C1C21 #218C1C
tetradic
#1C218C #8C1C59 #8C871C #1C8C4F
square
#1C218C #8C1C59 #8C871C #1C8C4F
split-complementary
#1C218C #8C4F1C #598C1C
monochromatic
#080926 #121559 #1C218C #262DBF #484FDA

Accessibility & contrast

On white

12.76
#1C218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1C218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C218C
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C218C#FFFFFF#000000##FFFFFF
##1C218C1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1c218c;
/* rgb */ color: rgb(28, 33, 140);
/* oklch */ color: oklch(33.4% 0.171 270.6);
Tailwind
colors: {
  custom: {
    50: '#6e5eaf',
    500: '#1c218c',
    950: '#000000',
  },
}
SCSS
$custom: #1c218c;
$custom-light: #6e5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1c218c",
  "rgb": {
    "r": 28,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 237.321,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33404,
    "c": 0.17086,
    "h": 270.6
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#1C218C
secondary
#BCB748
accent
#E23EEA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1C218C

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

Preview Lab → · Contrast checker → · Palette generator →

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