#1C238B#1C238B

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

Color values

HEX#1C238B
RGBrgb(28, 35, 139)
HSLhsl(236, 66%, 33%)
HSVhsv(236, 80%, 55%)
CMYKcmyk(79.9%, 74.8%, 0%, 45.5%)
CIE-LABlab(21.25, 35.57, -57.84)
CIE-LCHlch(21.25, 67.90, 301.59°)
OKLaboklab(33.6% 0.0012 -0.1675)
OKLCHoklch(33.6% 0.168 270.4)
XYZxyz(5.7385, 3.3124, 24.7580)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C238B #8B841C
analogous
#1C5B8B #1C238B #4C1C8B
triadic
#1C238B #8B1C23 #238B1C
tetradic
#1C238B #8B1C5B #8B841C #1C8B4C
square
#1C238B #8B1C5B #8B841C #1C8B4C
split-complementary
#1C238B #8B4C1C #5B8B1C
monochromatic
#070925 #121658 #1C238B #2630BE #4751DA

Accessibility & contrast

On white

12.63
#1C238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C238B
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C238B#FFFFFF#000000##FFFFFF
##1C238B1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1c238b;
/* rgb */ color: rgb(28, 35, 139);
/* oklch */ color: oklch(33.6% 0.168 270.4);
Tailwind
colors: {
  custom: {
    50: '#6d5fae',
    500: '#1c238b',
    950: '#000000',
  },
}
SCSS
$custom: #1c238b;
$custom-light: #6d5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#1c238b",
  "rgb": {
    "r": 28,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 236.216,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.336,
    "c": 0.16751,
    "h": 270.4
  },
  "luminance": 0.03313
}

Semantic roles & 50–950 ramp

primary
#1C238B
secondary
#BCB447
accent
#DF3EE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1C238B

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

Preview Lab → · Contrast checker → · Palette generator →

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