#1F1EA9#1F1EA9

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

Color values

HEX#1F1EA9
RGBrgb(31, 30, 169)
HSLhsl(240, 70%, 39%)
HSVhsv(240, 82%, 66%)
CMYKcmyk(81.7%, 82.2%, 0%, 33.7%)
CIE-LABlab(23.95, 48.65, -71.80)
CIE-LCHlch(23.95, 86.73, 304.12°)
OKLaboklab(36.56% 0.0003 -0.2079)
OKLCHoklch(36.56% 0.208 270.1)
XYZxyz(8.1883, 4.0835, 37.8851)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1EA9 #A8A91E
analogous
#1E63A9 #1F1EA9 #651EA9
triadic
#1F1EA9 #A91F1E #1EA91F
tetradic
#1F1EA9 #A91E63 #A8A91E #1EA965
square
#1F1EA9 #A91E63 #A8A91E #1EA965
split-complementary
#1F1EA9 #A9651E #63A91E
monochromatic
#0C0C41 #151575 #1F1EA9 #2C2BD9 #605FE3

Accessibility & contrast

On white

11.56
#1F1EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1EA9
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1EA9#FFFFFF#000000##FFFFFF
##1F1EA91.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AD
Deuteranopia (green-blind)
#0032A7
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f1ea9;
/* rgb */ color: rgb(31, 30, 169);
/* oklch */ color: oklch(36.6% 0.208 270.1);
Tailwind
colors: {
  custom: {
    50: '#765ec4',
    500: '#1f1ea9',
    950: '#000000',
  },
}
SCSS
$custom: #1f1ea9;
$custom-light: #765ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1ea9",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 169
  },
  "hsl": {
    "h": 240.432,
    "s": 69.849,
    "l": 39.02
  },
  "oklch": {
    "l": 0.36556,
    "c": 0.20786,
    "h": 270.1
  },
  "luminance": 0.04084
}

Semantic roles & 50–950 ramp

primary
#1F1EA9
secondary
#C6C75C
accent
#ED3BEB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #1F1EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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