#1B1F97#1B1F97

#1B1F97 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.187 H 269.8°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1B1F97
RGBrgb(27, 31, 151)
HSLhsl(238, 70%, 35%)
HSVhsv(238, 82%, 59%)
CMYKcmyk(82.1%, 79.5%, 0%, 40.8%)
CIE-LABlab(21.75, 42.02, -64.46)
CIE-LCHlch(21.75, 76.95, 303.10°)
OKLaboklab(34.34% -0.0006 -0.1867)
OKLCHoklch(34.34% 0.187 269.8)
XYZxyz(6.5260, 3.4466, 29.5935)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1F97 #97931B
analogous
#1B5D97 #1B1F97 #551B97
triadic
#1B1F97 #971B1F #1F971B
tetradic
#1B1F97 #971B5D #97931B #1B9755
square
#1B1F97 #971B5D #97931B #1B9755
split-complementary
#1B1F97 #97551B #5D971B
monochromatic
#080A2F #121463 #1B1F97 #242ACB #4D52DF

Accessibility & contrast

On white

12.43
#1B1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1B1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1F97
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1F97#FFFFFF#000000##FFFFFF
##1B1F971.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002E95
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b1f97;
/* rgb */ color: rgb(27, 31, 151);
/* oklch */ color: oklch(34.3% 0.187 269.8);
Tailwind
colors: {
  custom: {
    50: '#715db7',
    500: '#1b1f97',
    950: '#000000',
  },
}
SCSS
$custom: #1b1f97;
$custom-light: #715db7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1f97",
  "rgb": {
    "r": 27,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 238.065,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34341,
    "c": 0.18672,
    "h": 269.8
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#1B1F97
secondary
#C1BE4C
accent
#E73BEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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