#1F1B9E#1F1B9E

#1F1B9E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.9% C 0.197 H 271.0°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#1F1B9E
RGBrgb(31, 27, 158)
HSLhsl(242, 71%, 36%)
HSVhsv(242, 83%, 62%)
CMYKcmyk(80.4%, 82.9%, 0%, 38%)
CIE-LABlab(22.10, 46.62, -68.18)
CIE-LCHlch(22.10, 82.59, 304.36°)
OKLaboklab(34.89% 0.0035 -0.1973)
OKLCHoklch(34.89% 0.197 271)
XYZxyz(7.1265, 3.5430, 32.6494)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1B9E #9A9E1B
analogous
#1B599E #1F1B9E #611B9E
triadic
#1F1B9E #9E1F1B #1B9E1F
tetradic
#1F1B9E #9E1B59 #9A9E1B #1B9E61
square
#1F1B9E #9E1B59 #9A9E1B #1B9E61
split-complementary
#1F1B9E #9E611B #599E1B
monochromatic
#0A0935 #15126A #1F1B9E #2924D2 #5652E1

Accessibility & contrast

On white

12.29
#1F1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1B9E
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1B9E#FFFFFF#000000##FFFFFF
##1F1B9E1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#002E9C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f1b9e;
/* rgb */ color: rgb(31, 27, 158);
/* oklch */ color: oklch(34.9% 0.197 271.0);
Tailwind
colors: {
  custom: {
    50: '#745bbc',
    500: '#1f1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f1b9e;
$custom-light: #745bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1b9e",
  "rgb": {
    "r": 31,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 241.832,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.34886,
    "c": 0.19736,
    "h": 271
  },
  "luminance": 0.03544
}

Semantic roles & 50–950 ramp

primary
#1F1B9E
secondary
#C1C451
accent
#EE3AE8
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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