#1B239E#1B239E

#1B239E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.192 H 269.1°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#1B239E
RGBrgb(27, 35, 158)
HSLhsl(236, 71%, 36%)
HSVhsv(236, 83%, 62%)
CMYKcmyk(82.9%, 77.8%, 0%, 38%)
CIE-LABlab(23.35, 42.18, -66.11)
CIE-LCHlch(23.35, 78.42, 302.54°)
OKLaboklab(35.71% -0.0029 -0.1915)
OKLCHoklch(35.71% 0.192 269.1)
XYZxyz(7.2225, 3.9028, 32.7138)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B239E #9E961B
analogous
#1B659E #1B239E #551B9E
triadic
#1B239E #9E1B23 #239E1B
tetradic
#1B239E #9E1B65 #9E961B #1B9E55
square
#1B239E #9E1B65 #9E961B #1B9E55
split-complementary
#1B239E #9E551B #659E1B
monochromatic
#090C35 #12176A #1B239E #242FD2 #525BE1

Accessibility & contrast

On white

11.79
#1B239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1B239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B239E
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B239E#FFFFFF#000000##FFFFFF
##1B239E1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA1
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b239e;
/* rgb */ color: rgb(27, 35, 158);
/* oklch */ color: oklch(35.7% 0.192 269.1);
Tailwind
colors: {
  custom: {
    50: '#7260bc',
    500: '#1b239e',
    950: '#000000',
  },
}
SCSS
$custom: #1b239e;
$custom-light: #7260bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b239e",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 236.336,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35705,
    "c": 0.19156,
    "h": 269.1
  },
  "luminance": 0.03904
}

Semantic roles & 50–950 ramp

primary
#1B239E
secondary
#C4BD51
accent
#E33AEE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1B239E

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

Preview Lab → · Contrast checker → · Palette generator →

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