#1F1FA8#1F1FA8

#1F1FA8 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.6% C 0.206 H 270.1°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#1F1FA8
RGBrgb(31, 31, 168)
HSLhsl(240, 69%, 39%)
HSVhsv(240, 82%, 66%)
CMYKcmyk(81.5%, 81.5%, 0%, 34.1%)
CIE-LABlab(23.99, 47.84, -71.12)
CIE-LCHlch(23.99, 85.71, 303.93°)
OKLaboklab(36.55% 0.0003 -0.2059)
OKLCHoklch(36.55% 0.206 270.1)
XYZxyz(8.1205, 4.0975, 37.4011)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1FA8 #A8A81F
analogous
#1F64A8 #1F1FA8 #641FA8
triadic
#1F1FA8 #A81F1F #1FA81F
tetradic
#1F1FA8 #A81F64 #A8A81F #1FA864
square
#1F1FA8 #A81F64 #A8A81F #1FA864
split-complementary
#1F1FA8 #A8641F #64A81F
monochromatic
#0C0C41 #151574 #1F1FA8 #2C2CD8 #6060E2

Accessibility & contrast

On white

11.54
#1F1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1FA8
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1FA8#FFFFFF#000000##FFFFFF
##1F1FA81.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0032A6
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f1fa8;
/* rgb */ color: rgb(31, 31, 168);
/* oklch */ color: oklch(36.6% 0.206 270.1);
Tailwind
colors: {
  custom: {
    50: '#765ec3',
    500: '#1f1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #1f1fa8;
$custom-light: #765ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1fa8",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 240,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.36552,
    "c": 0.20591,
    "h": 270.1
  },
  "luminance": 0.04098
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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