#1C238E#1C238E

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

Color values

HEX#1C238E
RGBrgb(28, 35, 142)
HSLhsl(236, 67%, 33%)
HSVhsv(236, 80%, 56%)
CMYKcmyk(80.3%, 75.4%, 0%, 44.3%)
CIE-LABlab(21.58, 36.65, -59.17)
CIE-LCHlch(21.58, 69.60, 301.78°)
OKLaboklab(33.93% 0.0007 -0.1714)
OKLCHoklch(33.93% 0.171 270.2)
XYZxyz(5.9607, 3.4013, 25.9283)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C238E #8E871C
analogous
#1C5C8E #1C238E #4E1C8E
triadic
#1C238E #8E1C23 #238E1C
tetradic
#1C238E #8E1C5C #8E871C #1C8E4E
square
#1C238E #8E1C5C #8E871C #1C8E4E
split-complementary
#1C238E #8E4E1C #5C8E1C
monochromatic
#080A28 #12165B #1C238E #2630C1 #4952DB

Accessibility & contrast

On white

12.50
#1C238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1C238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C238E
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C238E#FFFFFF#000000##FFFFFF
##1C238E1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1c238e;
/* rgb */ color: rgb(28, 35, 142);
/* oklch */ color: oklch(33.9% 0.171 270.2);
Tailwind
colors: {
  custom: {
    50: '#6e5fb0',
    500: '#1c238e',
    950: '#000000',
  },
}
SCSS
$custom: #1c238e;
$custom-light: #6e5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1c238e",
  "rgb": {
    "r": 28,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 236.316,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33934,
    "c": 0.17136,
    "h": 270.2
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

primary
#1C238E
secondary
#BDB649
accent
#DF3EEA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1C238E

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

Preview Lab → · Contrast checker → · Palette generator →

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