#1C238F#1C238F

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

Color values

HEX#1C238F
RGBrgb(28, 35, 143)
HSLhsl(236, 67%, 34%)
HSVhsv(236, 80%, 56%)
CMYKcmyk(80.4%, 75.5%, 0%, 43.9%)
CIE-LABlab(21.69, 37.01, -59.60)
CIE-LCHlch(21.69, 70.16, 301.84°)
OKLaboklab(34.05% 0.0005 -0.1726)
OKLCHoklch(34.05% 0.173 270.2)
XYZxyz(6.0362, 3.4314, 26.3255)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C238F #8F881C
analogous
#1C5C8F #1C238F #4E1C8F
triadic
#1C238F #8F1C23 #238F1C
tetradic
#1C238F #8F1C5C #8F881C #1C8F4E
square
#1C238F #8F1C5C #8F881C #1C8F4E
split-complementary
#1C238F #8F4E1C #5C8F1C
monochromatic
#080A29 #12165C #1C238F #2630C2 #4A53DC

Accessibility & contrast

On white

12.45
#1C238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1C238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C238F
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C238F#FFFFFF#000000##FFFFFF
##1C238F1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1c238f;
/* rgb */ color: rgb(28, 35, 143);
/* oklch */ color: oklch(34.0% 0.173 270.2);
Tailwind
colors: {
  custom: {
    50: '#6e5fb1',
    500: '#1c238f',
    950: '#000000',
  },
}
SCSS
$custom: #1c238f;
$custom-light: #6e5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1c238f",
  "rgb": {
    "r": 28,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 236.348,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34046,
    "c": 0.17263,
    "h": 270.2
  },
  "luminance": 0.03432
}

Semantic roles & 50–950 ramp

primary
#1C238F
secondary
#BEB749
accent
#E03EEA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1C238F

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

Preview Lab → · Contrast checker → · Palette generator →

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