#1C228B#1C228B

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

Color values

HEX#1C228B
RGBrgb(28, 34, 139)
HSLhsl(237, 66%, 33%)
HSVhsv(237, 80%, 55%)
CMYKcmyk(79.9%, 75.5%, 0%, 45.5%)
CIE-LABlab(21.04, 36.19, -58.20)
CIE-LCHlch(21.04, 68.53, 301.87°)
OKLaboklab(33.44% 0.0016 -0.1685)
OKLCHoklch(33.44% 0.169 270.5)
XYZxyz(5.7095, 3.2544, 24.7483)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C228B #8B851C
analogous
#1C598B #1C228B #4E1C8B
triadic
#1C228B #8B1C22 #228B1C
tetradic
#1C228B #8B1C59 #8B851C #1C8B4E
square
#1C228B #8B1C59 #8B851C #1C8B4E
split-complementary
#1C228B #8B4E1C #598B1C
monochromatic
#070925 #121658 #1C228B #262EBE #474FDA

Accessibility & contrast

On white

12.72
#1C228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C228B
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C228B#FFFFFF#000000##FFFFFF
##1C228B1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1c228b;
/* rgb */ color: rgb(28, 34, 139);
/* oklch */ color: oklch(33.4% 0.169 270.5);
Tailwind
colors: {
  custom: {
    50: '#6d5eae',
    500: '#1c228b',
    950: '#000000',
  },
}
SCSS
$custom: #1c228b;
$custom-light: #6d5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#1c228b",
  "rgb": {
    "r": 28,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 236.757,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33444,
    "c": 0.16856,
    "h": 270.5
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#1C228B
secondary
#BCB647
accent
#E03EE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1C228B

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

Preview Lab → · Contrast checker → · Palette generator →

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