#1F1FA7#1F1FA7

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

Color values

HEX#1F1FA7
RGBrgb(31, 31, 167)
HSLhsl(240, 69%, 39%)
HSVhsv(240, 81%, 65%)
CMYKcmyk(81.4%, 81.4%, 0%, 34.5%)
CIE-LABlab(23.87, 47.52, -70.71)
CIE-LCHlch(23.87, 85.20, 303.90°)
OKLaboklab(36.43% 0.0005 -0.2047)
OKLCHoklch(36.43% 0.205 270.1)
XYZxyz(8.0277, 4.0604, 36.9124)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1FA7 #A7A71F
analogous
#1F63A7 #1F1FA7 #631FA7
triadic
#1F1FA7 #A71F1F #1FA71F
tetradic
#1F1FA7 #A71F63 #A7A71F #1FA763
square
#1F1FA7 #A71F63 #A7A71F #1FA763
split-complementary
#1F1FA7 #A7631F #63A71F
monochromatic
#0C0C40 #151573 #1F1FA7 #2B2BD8 #5F5FE1

Accessibility & contrast

On white

11.59
#1F1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1FA7
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1FA7#FFFFFF#000000##FFFFFF
##1F1FA71.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0032A5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f1fa7;
/* rgb */ color: rgb(31, 31, 167);
/* oklch */ color: oklch(36.4% 0.205 270.1);
Tailwind
colors: {
  custom: {
    50: '#765ec3',
    500: '#1f1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #1f1fa7;
$custom-light: #765ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1fa7",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 240,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.36433,
    "c": 0.20474,
    "h": 270.1
  },
  "luminance": 0.04061
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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