#1B1F82#1B1F82

#1B1F82 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.160 H 271.2°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#1B1F82
RGBrgb(27, 31, 130)
HSLhsl(238, 66%, 31%)
HSVhsv(238, 79%, 51%)
CMYKcmyk(79.2%, 76.2%, 0%, 49%)
CIE-LABlab(19.33, 34.71, -55.37)
CIE-LCHlch(19.33, 65.35, 302.08°)
OKLaboklab(31.91% 0.0032 -0.1603)
OKLCHoklch(31.91% 0.16 271.2)
XYZxyz(4.9699, 2.8241, 21.3980)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1F82 #827E1B
analogous
#1B5282 #1B1F82 #4A1B82
triadic
#1B1F82 #821B1F #1F821B
tetradic
#1B1F82 #821B52 #827E1B #1B824A
square
#1B1F82 #821B52 #827E1B #1B824A
split-complementary
#1B1F82 #824A1B #52821B
monochromatic
#06071D #10134F #1B1F82 #262BB5 #4046D7

Accessibility & contrast

On white

13.42
#1B1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1F82
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1F82#FFFFFF#000000##FFFFFF
##1B1F821.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b1f82;
/* rgb */ color: rgb(27, 31, 130);
/* oklch */ color: oklch(31.9% 0.160 271.2);
Tailwind
colors: {
  custom: {
    50: '#6b5ca7',
    500: '#1b1f82',
    950: '#000000',
  },
}
SCSS
$custom: #1b1f82;
$custom-light: #6b5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1f82",
  "rgb": {
    "r": 27,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 237.67,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31914,
    "c": 0.16036,
    "h": 271.2
  },
  "luminance": 0.02825
}

Semantic roles & 50–950 ramp

primary
#1B1F82
secondary
#B6B143
accent
#E23FE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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