#1B1F83#1B1F83

#1B1F83 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.162 H 271.1°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#1B1F83
RGBrgb(27, 31, 131)
HSLhsl(238, 66%, 31%)
HSVhsv(238, 79%, 51%)
CMYKcmyk(79.4%, 76.3%, 0%, 48.6%)
CIE-LABlab(19.44, 35.06, -55.82)
CIE-LCHlch(19.44, 65.92, 302.14°)
OKLaboklab(32.03% 0.0031 -0.1616)
OKLCHoklch(32.03% 0.162 271.1)
XYZxyz(5.0373, 2.8511, 21.7532)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1F83 #837F1B
analogous
#1B5383 #1B1F83 #4B1B83
triadic
#1B1F83 #831B1F #1F831B
tetradic
#1B1F83 #831B53 #837F1B #1B834B
square
#1B1F83 #831B53 #837F1B #1B834B
split-complementary
#1B1F83 #834B1B #53831B
monochromatic
#06071E #111350 #1B1F83 #252BB6 #4146D8

Accessibility & contrast

On white

13.37
#1B1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1F83
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1F83#FFFFFF#000000##FFFFFF
##1B1F831.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b1f83;
/* rgb */ color: rgb(27, 31, 131);
/* oklch */ color: oklch(32.0% 0.162 271.1);
Tailwind
colors: {
  custom: {
    50: '#6b5ca8',
    500: '#1b1f83',
    950: '#000000',
  },
}
SCSS
$custom: #1b1f83;
$custom-light: #6b5ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1f83",
  "rgb": {
    "r": 27,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 237.692,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32027,
    "c": 0.16165,
    "h": 271.1
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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