#1F1FA9#1F1FA9

#1F1FA9 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.7% C 0.207 H 270.0°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#1F1FA9
RGBrgb(31, 31, 169)
HSLhsl(240, 69%, 39%)
HSVhsv(240, 82%, 66%)
CMYKcmyk(81.7%, 81.7%, 0%, 33.7%)
CIE-LABlab(24.11, 48.16, -71.52)
CIE-LCHlch(24.11, 86.22, 303.96°)
OKLaboklab(36.67% 0.0001 -0.2071)
OKLCHoklch(36.67% 0.207 270)
XYZxyz(8.2141, 4.1349, 37.8936)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1FA9 #A9A91F
analogous
#1F64A9 #1F1FA9 #641FA9
triadic
#1F1FA9 #A91F1F #1FA91F
tetradic
#1F1FA9 #A91F64 #A9A91F #1FA964
square
#1F1FA9 #A91F64 #A9A91F #1FA964
split-complementary
#1F1FA9 #A9641F #64A91F
monochromatic
#0C0C42 #161675 #1F1FA9 #2D2DD8 #6060E2

Accessibility & contrast

On white

11.49
#1F1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F1FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1FA9
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1FA9#FFFFFF#000000##FFFFFF
##1F1FA91.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AD
Deuteranopia (green-blind)
#0032A7
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f1fa9;
/* rgb */ color: rgb(31, 31, 169);
/* oklch */ color: oklch(36.7% 0.207 270.0);
Tailwind
colors: {
  custom: {
    50: '#765ec4',
    500: '#1f1fa9',
    950: '#000000',
  },
}
SCSS
$custom: #1f1fa9;
$custom-light: #765ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1fa9",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 240,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.36672,
    "c": 0.20708,
    "h": 270
  },
  "luminance": 0.04136
}

Semantic roles & 50–950 ramp

primary
#1F1FA9
secondary
#C7C75D
accent
#EC3CEC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F1FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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