#1C238A#1C238A

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

Color values

HEX#1C238A
RGBrgb(28, 35, 138)
HSLhsl(236, 66%, 33%)
HSVhsv(236, 80%, 54%)
CMYKcmyk(79.7%, 74.6%, 0%, 45.9%)
CIE-LABlab(21.14, 35.21, -57.40)
CIE-LCHlch(21.14, 67.34, 301.53°)
OKLaboklab(33.49% 0.0013 -0.1662)
OKLCHoklch(33.49% 0.166 270.4)
XYZxyz(5.6658, 3.2833, 24.3750)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C238A #8A831C
analogous
#1C5A8A #1C238A #4C1C8A
triadic
#1C238A #8A1C23 #238A1C
tetradic
#1C238A #8A1C5A #8A831C #1C8A4C
square
#1C238A #8A1C5A #8A831C #1C8A4C
split-complementary
#1C238A #8A4C1C #5A8A1C
monochromatic
#070924 #121657 #1C238A #2630BD #4750DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1C238A#FFFFFF#000000##FFFFFF
##1C238A1.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)
#00388D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1c238a;
/* rgb */ color: rgb(28, 35, 138);
/* oklch */ color: oklch(33.5% 0.166 270.4);
Tailwind
colors: {
  custom: {
    50: '#6d5fad',
    500: '#1c238a',
    950: '#000000',
  },
}
SCSS
$custom: #1c238a;
$custom-light: #6d5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#1c238a",
  "rgb": {
    "r": 28,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 236.182,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3349,
    "c": 0.16623,
    "h": 270.4
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#1C238A
secondary
#BBB446
accent
#DE3FE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1C238A

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

Preview Lab → · Contrast checker → · Palette generator →

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