#1B1F8D#1B1F8D

#1B1F8D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.174 H 270.4°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#1B1F8D
RGBrgb(27, 31, 141)
HSLhsl(238, 68%, 33%)
HSVhsv(238, 81%, 55%)
CMYKcmyk(80.9%, 78%, 0%, 44.7%)
CIE-LABlab(20.58, 38.60, -60.21)
CIE-LCHlch(20.58, 71.52, 302.66°)
OKLaboklab(33.17% 0.0013 -0.1744)
OKLCHoklch(33.17% 0.174 270.4)
XYZxyz(5.7481, 3.1354, 25.4964)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1F8D #8D891B
analogous
#1B588D #1B1F8D #501B8D
triadic
#1B1F8D #8D1B1F #1F8D1B
tetradic
#1B1F8D #8D1B58 #8D891B #1B8D50
square
#1B1F8D #8D1B58 #8D891B #1B8D50
split-complementary
#1B1F8D #8D501B #588D1B
monochromatic
#070826 #11145A #1B1F8D #252AC0 #474CDC

Accessibility & contrast

On white

12.91
#1B1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1B1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1F8D
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1F8D#FFFFFF#000000##FFFFFF
##1B1F8D1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b1f8d;
/* rgb */ color: rgb(27, 31, 141);
/* oklch */ color: oklch(33.2% 0.174 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e5cb0',
    500: '#1b1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #1b1f8d;
$custom-light: #6e5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1f8d",
  "rgb": {
    "r": 27,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 237.895,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33172,
    "c": 0.17437,
    "h": 270.4
  },
  "luminance": 0.03136
}

Semantic roles & 50–950 ramp

primary
#1B1F8D
secondary
#BDB946
accent
#E53DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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