#1F1FA6#1F1FA6

#1F1FA6 is a dark, highly saturated blue. Relative luminance 0.040; OKLCH L 36.3% C 0.204 H 270.2°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#1F1FA6
RGBrgb(31, 31, 166)
HSLhsl(240, 69%, 39%)
HSVhsv(240, 81%, 65%)
CMYKcmyk(81.3%, 81.3%, 0%, 34.9%)
CIE-LABlab(23.75, 47.20, -70.31)
CIE-LCHlch(23.75, 84.68, 303.88°)
OKLaboklab(36.31% 0.0007 -0.2036)
OKLCHoklch(36.31% 0.204 270.2)
XYZxyz(7.9357, 4.0235, 36.4274)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1FA6 #A6A61F
analogous
#1F62A6 #1F1FA6 #621FA6
triadic
#1F1FA6 #A61F1F #1FA61F
tetradic
#1F1FA6 #A61F62 #A6A61F #1FA662
square
#1F1FA6 #A61F62 #A6A61F #1FA662
split-complementary
#1F1FA6 #A6621F #62A61F
monochromatic
#0C0C3F #151572 #1F1FA6 #2B2BD7 #5E5EE1

Accessibility & contrast

On white

11.64
#1F1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1FA6
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1FA6#FFFFFF#000000##FFFFFF
##1F1FA61.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAA
Deuteranopia (green-blind)
#0031A4
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f1fa6;
/* rgb */ color: rgb(31, 31, 166);
/* oklch */ color: oklch(36.3% 0.204 270.2);
Tailwind
colors: {
  custom: {
    50: '#765ec2',
    500: '#1f1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #1f1fa6;
$custom-light: #765ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1fa6",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 240,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36314,
    "c": 0.20357,
    "h": 270.2
  },
  "luminance": 0.04024
}

Semantic roles & 50–950 ramp

primary
#1F1FA6
secondary
#C5C55B
accent
#EB3CEB
background
#F7F5FC
surface
#EEE9F8
border
#C9C5D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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