#1F1EA1#1F1EA1

#1F1EA1 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.199 H 270.6°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#1F1EA1
RGBrgb(31, 30, 161)
HSLhsl(240, 69%, 37%)
HSVhsv(240, 81%, 63%)
CMYKcmyk(80.7%, 81.4%, 0%, 36.9%)
CIE-LABlab(22.97, 46.10, -68.56)
CIE-LCHlch(22.97, 82.61, 303.91°)
OKLaboklab(35.6% 0.002 -0.1985)
OKLCHoklch(35.6% 0.199 270.6)
XYZxyz(7.4602, 3.7922, 34.0501)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1EA1 #A0A11E
analogous
#1E5FA1 #1F1EA1 #611EA1
triadic
#1F1EA1 #A11F1E #1EA11F
tetradic
#1F1EA1 #A11E5F #A0A11E #1EA161
square
#1F1EA1 #A11E5F #A0A11E #1EA161
split-complementary
#1F1EA1 #A1611E #5FA11E
monochromatic
#0B0B3A #15146D #1F1EA1 #2928D5 #5A59E0

Accessibility & contrast

On white

11.94
#1F1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1EA1
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1EA1#FFFFFF#000000##FFFFFF
##1F1EA11.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f1ea1;
/* rgb */ color: rgb(31, 30, 161);
/* oklch */ color: oklch(35.6% 0.199 270.6);
Tailwind
colors: {
  custom: {
    50: '#745dbe',
    500: '#1f1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #1f1ea1;
$custom-light: #745dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1ea1",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 240.458,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.35599,
    "c": 0.1985,
    "h": 270.6
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

primary
#1F1EA1
secondary
#C3C457
accent
#EB3CEA
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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