#1F1AB4#1F1AB4

#1F1AB4 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.5% C 0.223 H 269.6°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#1F1AB4
RGBrgb(31, 26, 180)
HSLhsl(242, 75%, 40%)
HSVhsv(242, 86%, 71%)
CMYKcmyk(82.8%, 85.6%, 0%, 29.4%)
CIE-LABlab(24.72, 53.82, -77.13)
CIE-LCHlch(24.72, 94.05, 304.91°)
OKLaboklab(37.48% -0.0014 -0.2232)
OKLCHoklch(37.48% 0.223 269.6)
XYZxyz(9.1699, 4.3243, 43.5225)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1AB4 #AFB41A
analogous
#1A62B4 #1F1AB4 #6C1AB4
triadic
#1F1AB4 #B41F1A #1AB41F
tetradic
#1F1AB4 #B41A62 #AFB41A #1AB46C
square
#1F1AB4 #B41A62 #AFB41A #1AB46C
split-complementary
#1F1AB4 #B46C1A #62B41A
monochromatic
#0D0B49 #16127F #1F1AB4 #312BE0 #6560E8

Accessibility & contrast

On white

11.26
#1F1AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F1AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1AB4
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1AB4#FFFFFF#000000##FFFFFF
##1F1AB41.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B8
Deuteranopia (green-blind)
#0032B2
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f1ab4;
/* rgb */ color: rgb(31, 26, 180);
/* oklch */ color: oklch(37.5% 0.223 269.6);
Tailwind
colors: {
  custom: {
    50: '#7a5dcc',
    500: '#1f1ab4',
    950: '#000000',
  },
}
SCSS
$custom: #1f1ab4;
$custom-light: #7a5dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1ab4",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 241.948,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.37479,
    "c": 0.22319,
    "h": 269.6
  },
  "luminance": 0.04325
}

Semantic roles & 50–950 ramp

primary
#1F1AB4
secondary
#C9CC5D
accent
#F136EB
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #1F1AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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