#1F1FB1#1F1FB1

#1F1FB1 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.6% C 0.216 H 269.6°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#1F1FB1
RGBrgb(31, 31, 177)
HSLhsl(240, 70%, 41%)
HSVhsv(240, 82%, 69%)
CMYKcmyk(82.5%, 82.5%, 0%, 30.6%)
CIE-LABlab(25.09, 50.69, -74.71)
CIE-LCHlch(25.09, 90.28, 304.15°)
OKLaboklab(37.63% -0.0015 -0.2163)
OKLCHoklch(37.63% 0.216 269.6)
XYZxyz(8.9882, 4.4445, 41.9706)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1FB1 #B1B11F
analogous
#1F68B1 #1F1FB1 #681FB1
triadic
#1F1FB1 #B11F1F #1FB11F
tetradic
#1F1FB1 #B11F68 #B1B11F #1FB168
square
#1F1FB1 #B11F68 #B1B11F #1FB168
split-complementary
#1F1FB1 #B1681F #68B11F
monochromatic
#0D0D49 #16167D #1F1FB1 #3232DB #6666E4

Accessibility & contrast

On white

11.12
#1F1FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F1FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1FB1
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1FB1#FFFFFF#000000##FFFFFF
##1F1FB11.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B5
Deuteranopia (green-blind)
#0034AF
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f1fb1;
/* rgb */ color: rgb(31, 31, 177);
/* oklch */ color: oklch(37.6% 0.216 269.6);
Tailwind
colors: {
  custom: {
    50: '#785fca',
    500: '#1f1fb1',
    950: '#000000',
  },
}
SCSS
$custom: #1f1fb1;
$custom-light: #785fca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1fb1",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 177
  },
  "hsl": {
    "h": 240,
    "s": 70.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.37631,
    "c": 0.21632,
    "h": 269.6
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#1F1FB1
secondary
#CACA62
accent
#ED3BED
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #1F1FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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