#1B236B#1B236B

#1B236B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.124 H 271.7°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#1B236B
RGBrgb(27, 35, 107)
HSLhsl(234, 60%, 26%)
HSVhsv(234, 75%, 42%)
CMYKcmyk(74.8%, 67.3%, 0%, 58%)
CIE-LABlab(17.90, 23.42, -42.96)
CIE-LCHlch(17.90, 48.93, 298.60°)
OKLaboklab(30.16% 0.0037 -0.1241)
OKLCHoklch(30.16% 0.124 271.7)
XYZxyz(3.7060, 2.4962, 14.1936)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B236B #6B631B
analogous
#1B4B6B #1B236B #3B1B6B
triadic
#1B236B #6B1B23 #236B1B
tetradic
#1B236B #6B1B4B #6B631B #1B6B3B
square
#1B236B #6B1B4B #6B631B #1B6B3B
split-complementary
#1B236B #6B3B1B #4B6B1B
monochromatic
#060818 #0F133A #1B236B #27339C #3544CC

Accessibility & contrast

On white

14.01
#1B236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1B236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B236B
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B236B#FFFFFF#000000##FFFFFF
##1B236B1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b236b;
/* rgb */ color: rgb(27, 35, 107);
/* oklch */ color: oklch(30.2% 0.124 271.7);
Tailwind
colors: {
  custom: {
    50: '#645e96',
    500: '#1b236b',
    950: '#000000',
  },
}
SCSS
$custom: #1b236b;
$custom-light: #645e96;
$custom-dark: #000000;
JSON
{
  "hex": "#1b236b",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 234,
    "s": 59.701,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30164,
    "c": 0.12413,
    "h": 271.7
  },
  "luminance": 0.02497
}

Semantic roles & 50–950 ramp

primary
#1B236B
secondary
#A09742
accent
#D345E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1B236B

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

Preview Lab → · Contrast checker → · Palette generator →

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