#1F1AB3#1F1AB3

#1F1AB3 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.4% C 0.222 H 269.7°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#1F1AB3
RGBrgb(31, 26, 179)
HSLhsl(242, 75%, 40%)
HSVhsv(242, 85%, 70%)
CMYKcmyk(82.7%, 85.5%, 0%, 29.8%)
CIE-LABlab(24.59, 53.52, -76.74)
CIE-LCHlch(24.59, 93.56, 304.89°)
OKLaboklab(37.36% -0.0012 -0.2221)
OKLCHoklch(37.36% 0.222 269.7)
XYZxyz(9.0684, 4.2837, 42.9880)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1AB3 #AEB31A
analogous
#1A61B3 #1F1AB3 #6C1AB3
triadic
#1F1AB3 #B31F1A #1AB31F
tetradic
#1F1AB3 #B31A61 #AEB31A #1AB36C
square
#1F1AB3 #B31A61 #AEB31A #1AB36C
split-complementary
#1F1AB3 #B36C1A #61B31A
monochromatic
#0C0A48 #16127E #1F1AB3 #302AE0 #6460E8

Accessibility & contrast

On white

11.31
#1F1AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F1AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1AB3
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1AB3#FFFFFF#000000##FFFFFF
##1F1AB31.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0032B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f1ab3;
/* rgb */ color: rgb(31, 26, 179);
/* oklch */ color: oklch(37.4% 0.222 269.7);
Tailwind
colors: {
  custom: {
    50: '#795dcb',
    500: '#1f1ab3',
    950: '#000000',
  },
}
SCSS
$custom: #1f1ab3;
$custom-light: #795dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1ab3",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 241.961,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37356,
    "c": 0.22207,
    "h": 269.7
  },
  "luminance": 0.04285
}

Semantic roles & 50–950 ramp

primary
#1F1AB3
secondary
#C8CC5D
accent
#F137EB
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #1F1AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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