#1B1E72#1B1E72

#1B1E72 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.140 H 272.6°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#1B1E72
RGBrgb(27, 30, 114)
HSLhsl(238, 62%, 28%)
HSVhsv(238, 76%, 45%)
CMYKcmyk(76.3%, 73.7%, 0%, 55.3%)
CIE-LABlab(17.35, 29.48, -48.41)
CIE-LCHlch(17.35, 56.68, 301.34°)
OKLaboklab(29.98% 0.0063 -0.14)
OKLCHoklch(29.98% 0.14 272.6)
XYZxyz(3.9525, 2.3761, 16.1666)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1E72 #726F1B
analogous
#1B4972 #1B1E72 #431B72
triadic
#1B1E72 #721B1E #1E721B
tetradic
#1B1E72 #721B49 #726F1B #1B7243
square
#1B1E72 #721B49 #726F1B #1B7243
split-complementary
#1B1E72 #72431B #49721B
monochromatic
#060719 #0F1141 #1B1E72 #272BA3 #383DD0

Accessibility & contrast

On white

14.24
#1B1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1B1E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1E72
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1E72#FFFFFF#000000##FFFFFF
##1B1E721.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b1e72;
/* rgb */ color: rgb(27, 30, 114);
/* oklch */ color: oklch(30.0% 0.140 272.6);
Tailwind
colors: {
  custom: {
    50: '#675a9b',
    500: '#1b1e72',
    950: '#000000',
  },
}
SCSS
$custom: #1b1e72;
$custom-light: #675a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1e72",
  "rgb": {
    "r": 27,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 237.931,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29977,
    "c": 0.14017,
    "h": 272.6
  },
  "luminance": 0.02376
}

Semantic roles & 50–950 ramp

primary
#1B1E72
secondary
#A7A342
accent
#DF43E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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