#1C228C#1C228C

#1C228C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.170 H 270.5°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#1C228C
RGBrgb(28, 34, 140)
HSLhsl(237, 67%, 33%)
HSVhsv(237, 80%, 55%)
CMYKcmyk(80%, 75.7%, 0%, 45.1%)
CIE-LABlab(21.15, 36.54, -58.64)
CIE-LCHlch(21.15, 69.10, 301.93°)
OKLaboklab(33.56% 0.0014 -0.1698)
OKLCHoklch(33.56% 0.17 270.5)
XYZxyz(5.7829, 3.2837, 25.1349)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C228C #8C861C
analogous
#1C5A8C #1C228C #4E1C8C
triadic
#1C228C #8C1C22 #228C1C
tetradic
#1C228C #8C1C5A #8C861C #1C8C4E
square
#1C228C #8C1C5A #8C861C #1C8C4E
split-complementary
#1C228C #8C4E1C #5A8C1C
monochromatic
#080926 #121659 #1C228C #262EBF #4850DA

Accessibility & contrast

On white

12.68
#1C228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C228C
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C228C#FFFFFF#000000##FFFFFF
##1C228C1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1c228c;
/* rgb */ color: rgb(28, 34, 140);
/* oklch */ color: oklch(33.6% 0.170 270.5);
Tailwind
colors: {
  custom: {
    50: '#6e5eaf',
    500: '#1c228c',
    950: '#000000',
  },
}
SCSS
$custom: #1c228c;
$custom-light: #6e5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1c228c",
  "rgb": {
    "r": 28,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 236.786,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33556,
    "c": 0.16984,
    "h": 270.5
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#1C228C
secondary
#BCB648
accent
#E03EEA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1C228C

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

Preview Lab → · Contrast checker → · Palette generator →

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