#1B237B#1B237B

#1B237B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.147 H 270.9°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#1B237B
RGBrgb(27, 35, 123)
HSLhsl(235, 64%, 29%)
HSVhsv(235, 78%, 48%)
CMYKcmyk(78%, 71.5%, 0%, 51.8%)
CIE-LABlab(19.49, 29.58, -50.65)
CIE-LCHlch(19.49, 58.66, 300.28°)
OKLaboklab(31.81% 0.0022 -0.1466)
OKLCHoklch(31.81% 0.147 270.9)
XYZxyz(4.6270, 2.8646, 19.0441)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B237B #7B731B
analogous
#1B537B #1B237B #431B7B
triadic
#1B237B #7B1B23 #237B1B
tetradic
#1B237B #7B1B53 #7B731B #1B7B43
square
#1B237B #7B1B53 #7B731B #1B7B43
split-complementary
#1B237B #7B431B #537B1B
monochromatic
#060719 #101549 #1B237B #2631AD #3C49D4

Accessibility & contrast

On white

13.35
#1B237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B237B
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B237B#FFFFFF#000000##FFFFFF
##1B237B1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b237b;
/* rgb */ color: rgb(27, 35, 123);
/* oklch */ color: oklch(31.8% 0.147 270.9);
Tailwind
colors: {
  custom: {
    50: '#685ea2',
    500: '#1b237b',
    950: '#000000',
  },
}
SCSS
$custom: #1b237b;
$custom-light: #685ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b237b",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 235,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31809,
    "c": 0.14661,
    "h": 270.9
  },
  "luminance": 0.02865
}

Semantic roles & 50–950 ramp

primary
#1B237B
secondary
#AFA643
accent
#D941E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B237B

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

Preview Lab → · Contrast checker → · Palette generator →

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