#1C218A#1C218A

#1C218A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.168 H 270.7°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#1C218A
RGBrgb(28, 33, 138)
HSLhsl(237, 66%, 33%)
HSVhsv(237, 80%, 54%)
CMYKcmyk(79.7%, 76.1%, 0%, 45.9%)
CIE-LABlab(20.71, 36.44, -58.12)
CIE-LCHlch(20.71, 68.59, 302.08°)
OKLaboklab(33.18% 0.0022 -0.1683)
OKLCHoklch(33.18% 0.168 270.7)
XYZxyz(5.6086, 3.1689, 24.3559)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C218A #8A851C
analogous
#1C588A #1C218A #4E1C8A
triadic
#1C218A #8A1C21 #218A1C
tetradic
#1C218A #8A1C58 #8A851C #1C8A4E
square
#1C218A #8A1C58 #8A851C #1C8A4E
split-complementary
#1C218A #8A4E1C #588A1C
monochromatic
#070924 #121557 #1C218A #262DBD #474DDA

Accessibility & contrast

On white

12.85
#1C218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1C218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C218A
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C218A#FFFFFF#000000##FFFFFF
##1C218A1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1c218a;
/* rgb */ color: rgb(28, 33, 138);
/* oklch */ color: oklch(33.2% 0.168 270.7);
Tailwind
colors: {
  custom: {
    50: '#6d5dad',
    500: '#1c218a',
    950: '#000000',
  },
}
SCSS
$custom: #1c218a;
$custom-light: #6d5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#1c218a",
  "rgb": {
    "r": 28,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 237.273,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33178,
    "c": 0.16831,
    "h": 270.7
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#1C218A
secondary
#BBB646
accent
#E13FE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1C218A

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

Preview Lab → · Contrast checker → · Palette generator →

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