#1C238C#1C238C

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

Color values

HEX#1C238C
RGBrgb(28, 35, 140)
HSLhsl(236, 67%, 33%)
HSVhsv(236, 80%, 55%)
CMYKcmyk(80%, 75%, 0%, 45.1%)
CIE-LABlab(21.36, 35.93, -58.28)
CIE-LCHlch(21.36, 68.47, 301.66°)
OKLaboklab(33.71% 0.001 -0.1688)
OKLCHoklch(33.71% 0.169 270.3)
XYZxyz(5.8119, 3.3417, 25.1446)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C238C #8C851C
analogous
#1C5B8C #1C238C #4D1C8C
triadic
#1C238C #8C1C23 #238C1C
tetradic
#1C238C #8C1C5B #8C851C #1C8C4D
square
#1C238C #8C1C5B #8C851C #1C8C4D
split-complementary
#1C238C #8C4D1C #5B8C1C
monochromatic
#080926 #121659 #1C238C #2630BF #4851DA

Accessibility & contrast

On white

12.59
#1C238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C238C
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C238C#FFFFFF#000000##FFFFFF
##1C238C1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1c238c;
/* rgb */ color: rgb(28, 35, 140);
/* oklch */ color: oklch(33.7% 0.169 270.3);
Tailwind
colors: {
  custom: {
    50: '#6d5faf',
    500: '#1c238c',
    950: '#000000',
  },
}
SCSS
$custom: #1c238c;
$custom-light: #6d5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1c238c",
  "rgb": {
    "r": 28,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 236.25,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33711,
    "c": 0.1688,
    "h": 270.3
  },
  "luminance": 0.03342
}

Semantic roles & 50–950 ramp

primary
#1C238C
secondary
#BCB548
accent
#DF3EEA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1C238C

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

Preview Lab → · Contrast checker → · Palette generator →

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