#1F1B94#1F1B94

#1F1B94 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.185 H 271.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#1F1B94
RGBrgb(31, 27, 148)
HSLhsl(242, 69%, 34%)
HSVhsv(242, 82%, 58%)
CMYKcmyk(79.1%, 81.8%, 0%, 42%)
CIE-LABlab(20.88, 43.41, -64.06)
CIE-LCHlch(20.88, 77.38, 304.12°)
OKLaboklab(33.68% 0.0058 -0.1854)
OKLCHoklch(33.68% 0.185 271.8)
XYZxyz(6.3005, 3.2126, 28.2993)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1B94 #90941B
analogous
#1B5494 #1F1B94 #5B1B94
triadic
#1F1B94 #941F1B #1B941F
tetradic
#1F1B94 #941B54 #90941B #1B945B
square
#1F1B94 #941B54 #90941B #1B945B
split-complementary
#1F1B94 #945B1B #54941B
monochromatic
#09082C #141260 #1F1B94 #2A24C8 #504BDE

Accessibility & contrast

On white

12.78
#1F1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1B94
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1B94#FFFFFF#000000##FFFFFF
##1F1B941.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002C92
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f1b94;
/* rgb */ color: rgb(31, 27, 148);
/* oklch */ color: oklch(33.7% 0.185 271.8);
Tailwind
colors: {
  custom: {
    50: '#715bb5',
    500: '#1f1b94',
    950: '#000000',
  },
}
SCSS
$custom: #1f1b94;
$custom-light: #715bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1b94",
  "rgb": {
    "r": 31,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 241.983,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.33684,
    "c": 0.18548,
    "h": 271.8
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#1F1B94
secondary
#BCC04B
accent
#EC3CE6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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