#1C238D#1C238D

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

Color values

HEX#1C238D
RGBrgb(28, 35, 141)
HSLhsl(236, 67%, 33%)
HSVhsv(236, 80%, 55%)
CMYKcmyk(80.1%, 75.2%, 0%, 44.7%)
CIE-LABlab(21.47, 36.29, -58.73)
CIE-LCHlch(21.47, 69.03, 301.72°)
OKLaboklab(33.82% 0.0008 -0.1701)
OKLCHoklch(33.82% 0.17 270.3)
XYZxyz(5.8860, 3.3714, 25.5347)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C238D #8D861C
analogous
#1C5B8D #1C238D #4D1C8D
triadic
#1C238D #8D1C23 #238D1C
tetradic
#1C238D #8D1C5B #8D861C #1C8D4D
square
#1C238D #8D1C5B #8D861C #1C8D4D
split-complementary
#1C238D #8D4D1C #5B8D1C
monochromatic
#080A27 #12165A #1C238D #2630C0 #4952DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1C238D#FFFFFF#000000##FFFFFF
##1C238D1.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)
#003990
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1c238d;
/* rgb */ color: rgb(28, 35, 141);
/* oklch */ color: oklch(33.8% 0.170 270.3);
Tailwind
colors: {
  custom: {
    50: '#6e5faf',
    500: '#1c238d',
    950: '#000000',
  },
}
SCSS
$custom: #1c238d;
$custom-light: #6e5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1c238d",
  "rgb": {
    "r": 28,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 236.283,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33823,
    "c": 0.17008,
    "h": 270.3
  },
  "luminance": 0.03372
}

Semantic roles & 50–950 ramp

primary
#1C238D
secondary
#BDB548
accent
#DF3EEA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #1C238D

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

Preview Lab → · Contrast checker → · Palette generator →

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