#1B237A#1B237A

#1B237A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.145 H 270.9°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#1B237A
RGBrgb(27, 35, 122)
HSLhsl(235, 64%, 29%)
HSVhsv(235, 78%, 48%)
CMYKcmyk(77.9%, 71.3%, 0%, 52.2%)
CIE-LABlab(19.39, 29.20, -50.19)
CIE-LCHlch(19.39, 58.06, 300.19°)
OKLaboklab(31.7% 0.0023 -0.1452)
OKLCHoklch(31.7% 0.145 270.9)
XYZxyz(4.5647, 2.8397, 18.7161)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B237A #7A721B
analogous
#1B537A #1B237A #431B7A
triadic
#1B237A #7A1B23 #237A1B
tetradic
#1B237A #7A1B53 #7A721B #1B7A43
square
#1B237A #7A1B53 #7A721B #1B7A43
split-complementary
#1B237A #7A431B #537A1B
monochromatic
#060719 #101548 #1B237A #2631AC #3C48D4

Accessibility & contrast

On white

13.39
#1B237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1B237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B237A
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B237A#FFFFFF#000000##FFFFFF
##1B237A1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b237a;
/* rgb */ color: rgb(27, 35, 122);
/* oklch */ color: oklch(31.7% 0.145 270.9);
Tailwind
colors: {
  custom: {
    50: '#685ea1',
    500: '#1b237a',
    950: '#000000',
  },
}
SCSS
$custom: #1b237a;
$custom-light: #685ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b237a",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 234.947,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31703,
    "c": 0.14524,
    "h": 270.9
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#1B237A
secondary
#AEA543
accent
#D941E7
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B237A

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

Preview Lab → · Contrast checker → · Palette generator →

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