#1C228F#1C228F

#1C228F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.174 H 270.3°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#1C228F
RGBrgb(28, 34, 143)
HSLhsl(237, 67%, 34%)
HSVhsv(237, 80%, 56%)
CMYKcmyk(80.4%, 76.2%, 0%, 43.9%)
CIE-LABlab(21.48, 37.61, -59.96)
CIE-LCHlch(21.48, 70.78, 302.10°)
OKLaboklab(33.89% 0.0009 -0.1736)
OKLCHoklch(33.89% 0.174 270.3)
XYZxyz(6.0072, 3.3734, 26.3158)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C228F #8F891C
analogous
#1C5B8F #1C228F #4F1C8F
triadic
#1C228F #8F1C22 #228F1C
tetradic
#1C228F #8F1C5B #8F891C #1C8F4F
square
#1C228F #8F1C5B #8F891C #1C8F4F
split-complementary
#1C228F #8F4F1C #5B8F1C
monochromatic
#080A29 #12165C #1C228F #262EC2 #4A51DC

Accessibility & contrast

On white

12.54
#1C228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1C228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C228F
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C228F#FFFFFF#000000##FFFFFF
##1C228F1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1c228f;
/* rgb */ color: rgb(28, 34, 143);
/* oklch */ color: oklch(33.9% 0.174 270.3);
Tailwind
colors: {
  custom: {
    50: '#6e5eb1',
    500: '#1c228f',
    950: '#000000',
  },
}
SCSS
$custom: #1c228f;
$custom-light: #6e5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1c228f",
  "rgb": {
    "r": 28,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 236.87,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33894,
    "c": 0.17365,
    "h": 270.3
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#1C228F
secondary
#BEB849
accent
#E13EEA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1C228F

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

Preview Lab → · Contrast checker → · Palette generator →

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