#1B1F85#1B1F85

#1B1F85 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.164 H 270.9°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#1B1F85
RGBrgb(27, 31, 133)
HSLhsl(238, 66%, 31%)
HSVhsv(238, 80%, 52%)
CMYKcmyk(79.7%, 76.7%, 0%, 47.8%)
CIE-LABlab(19.66, 35.78, -56.71)
CIE-LCHlch(19.66, 67.05, 302.25°)
OKLaboklab(32.25% 0.0027 -0.1642)
OKLCHoklch(32.25% 0.164 270.9)
XYZxyz(5.1742, 2.9059, 22.4739)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1F85 #85811B
analogous
#1B5485 #1B1F85 #4C1B85
triadic
#1B1F85 #851B1F #1F851B
tetradic
#1B1F85 #851B54 #85811B #1B854C
square
#1B1F85 #851B54 #85811B #1B854C
split-complementary
#1B1F85 #854C1B #54851B
monochromatic
#06071F #111352 #1B1F85 #252BB8 #4247D9

Accessibility & contrast

On white

13.28
#1B1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1B1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1F85
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1F85#FFFFFF#000000##FFFFFF
##1B1F851.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002A83
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b1f85;
/* rgb */ color: rgb(27, 31, 133);
/* oklch */ color: oklch(32.3% 0.164 270.9);
Tailwind
colors: {
  custom: {
    50: '#6c5caa',
    500: '#1b1f85',
    950: '#000000',
  },
}
SCSS
$custom: #1b1f85;
$custom-light: #6c5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1f85",
  "rgb": {
    "r": 27,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 237.736,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32254,
    "c": 0.16423,
    "h": 270.9
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#1B1F85
secondary
#B8B444
accent
#E33FE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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