#1C228D#1C228D

#1C228D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.171 H 270.4°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#1C228D
RGBrgb(28, 34, 141)
HSLhsl(237, 67%, 33%)
HSVhsv(237, 80%, 55%)
CMYKcmyk(80.1%, 75.9%, 0%, 44.7%)
CIE-LABlab(21.26, 36.90, -59.08)
CIE-LCHlch(21.26, 69.66, 301.99°)
OKLaboklab(33.67% 0.0013 -0.1711)
OKLCHoklch(33.67% 0.171 270.4)
XYZxyz(5.8570, 3.3134, 25.5250)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C228D #8D871C
analogous
#1C5A8D #1C228D #4E1C8D
triadic
#1C228D #8D1C22 #228D1C
tetradic
#1C228D #8D1C5A #8D871C #1C8D4E
square
#1C228D #8D1C5A #8D871C #1C8D4E
split-complementary
#1C228D #8D4E1C #5A8D1C
monochromatic
#080927 #12165A #1C228D #262EC0 #4950DB

Accessibility & contrast

On white

12.63
#1C228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1C228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C228D
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C228D#FFFFFF#000000##FFFFFF
##1C228D1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1c228d;
/* rgb */ color: rgb(28, 34, 141);
/* oklch */ color: oklch(33.7% 0.171 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e5eb0',
    500: '#1c228d',
    950: '#000000',
  },
}
SCSS
$custom: #1c228d;
$custom-light: #6e5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1c228d",
  "rgb": {
    "r": 28,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 236.814,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33669,
    "c": 0.17111,
    "h": 270.4
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#1C228D
secondary
#BDB748
accent
#E13EEA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #1C228D

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

Preview Lab → · Contrast checker → · Palette generator →

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