#1B1F99#1B1F99

#1B1F99 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.189 H 269.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#1B1F99
RGBrgb(27, 31, 153)
HSLhsl(238, 70%, 35%)
HSVhsv(238, 82%, 60%)
CMYKcmyk(82.4%, 79.7%, 0%, 40%)
CIE-LABlab(21.99, 42.70, -65.30)
CIE-LCHlch(21.99, 78.02, 303.18°)
OKLaboklab(34.58% -0.0009 -0.1891)
OKLCHoklch(34.58% 0.189 269.7)
XYZxyz(6.6898, 3.5121, 30.4561)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1F99 #99951B
analogous
#1B5E99 #1B1F99 #561B99
triadic
#1B1F99 #991B1F #1F991B
tetradic
#1B1F99 #991B5E #99951B #1B9956
square
#1B1F99 #991B5E #99951B #1B9956
split-complementary
#1B1F99 #99561B #5E991B
monochromatic
#090A31 #121465 #1B1F99 #242ACD #4F53E0

Accessibility & contrast

On white

12.33
#1B1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1B1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1F99
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1F99#FFFFFF#000000##FFFFFF
##1B1F991.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#002E97
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b1f99;
/* rgb */ color: rgb(27, 31, 153);
/* oklch */ color: oklch(34.6% 0.189 269.7);
Tailwind
colors: {
  custom: {
    50: '#715db8',
    500: '#1b1f99',
    950: '#000000',
  },
}
SCSS
$custom: #1b1f99;
$custom-light: #715db8;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1f99",
  "rgb": {
    "r": 27,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 238.095,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34577,
    "c": 0.18914,
    "h": 269.7
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#1B1F99
secondary
#C2BF4E
accent
#E73BED
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090412
muted
#7B7981

Preview Lab

Preview with #1B1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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