#1F1FAA#1F1FAA

#1F1FAA is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.8% C 0.208 H 270.0°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#1F1FAA
RGBrgb(31, 31, 170)
HSLhsl(240, 69%, 39%)
HSVhsv(240, 82%, 67%)
CMYKcmyk(81.8%, 81.8%, 0%, 33.3%)
CIE-LABlab(24.23, 48.48, -71.92)
CIE-LCHlch(24.23, 86.74, 303.98°)
OKLaboklab(36.79% -0.0001 -0.2082)
OKLCHoklch(36.79% 0.208 270)
XYZxyz(8.3083, 4.1726, 38.3899)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1FAA #AAAA1F
analogous
#1F65AA #1F1FAA #651FAA
triadic
#1F1FAA #AA1F1F #1FAA1F
tetradic
#1F1FAA #AA1F65 #AAAA1F #1FAA65
square
#1F1FAA #AA1F65 #AAAA1F #1FAA65
split-complementary
#1F1FAA #AA651F #65AA1F
monochromatic
#0C0C42 #161676 #1F1FAA #2D2DD9 #6161E2

Accessibility & contrast

On white

11.45
#1F1FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1FAA
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1FAA#FFFFFF#000000##FFFFFF
##1F1FAA1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AE
Deuteranopia (green-blind)
#0032A8
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f1faa;
/* rgb */ color: rgb(31, 31, 170);
/* oklch */ color: oklch(36.8% 0.208 270.0);
Tailwind
colors: {
  custom: {
    50: '#775ec5',
    500: '#1f1faa',
    950: '#000000',
  },
}
SCSS
$custom: #1f1faa;
$custom-light: #775ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1faa",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 170
  },
  "hsl": {
    "h": 240,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.36791,
    "c": 0.20824,
    "h": 270
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#1F1FAA
secondary
#C7C75E
accent
#EC3CEC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #1F1FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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