#1B237E#1B237E

#1B237E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.151 H 270.7°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#1B237E
RGBrgb(27, 35, 126)
HSLhsl(235, 65%, 30%)
HSVhsv(235, 79%, 49%)
CMYKcmyk(78.6%, 72.2%, 0%, 50.6%)
CIE-LABlab(19.81, 30.71, -52.05)
CIE-LCHlch(19.81, 60.43, 300.54°)
OKLaboklab(32.13% 0.0019 -0.1506)
OKLCHoklch(32.13% 0.151 270.7)
XYZxyz(4.8176, 2.9409, 20.0484)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B237E #7E761B
analogous
#1B547E #1B237E #451B7E
triadic
#1B237E #7E1B23 #237E1B
tetradic
#1B237E #7E1B54 #7E761B #1B7E45
square
#1B237E #7E1B54 #7E761B #1B7E45
split-complementary
#1B237E #7E451B #547E1B
monochromatic
#050719 #10154C #1B237E #2631B0 #3E4AD6

Accessibility & contrast

On white

13.22
#1B237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1B237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B237E
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B237E#FFFFFF#000000##FFFFFF
##1B237E1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b237e;
/* rgb */ color: rgb(27, 35, 126);
/* oklch */ color: oklch(32.1% 0.151 270.7);
Tailwind
colors: {
  custom: {
    50: '#695ea4',
    500: '#1b237e',
    950: '#000000',
  },
}
SCSS
$custom: #1b237e;
$custom-light: #695ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b237e",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 235.152,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.32129,
    "c": 0.15066,
    "h": 270.7
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#1B237E
secondary
#B2A943
accent
#DA40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B237E

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

Preview Lab → · Contrast checker → · Palette generator →

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