#1F1EA6#1F1EA6

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

Color values

HEX#1F1EA6
RGBrgb(31, 30, 166)
HSLhsl(240, 69%, 38%)
HSVhsv(240, 82%, 65%)
CMYKcmyk(81.3%, 81.9%, 0%, 34.9%)
CIE-LABlab(23.58, 47.70, -70.59)
CIE-LCHlch(23.58, 85.19, 304.05°)
OKLaboklab(36.2% 0.001 -0.2044)
OKLCHoklch(36.2% 0.204 270.3)
XYZxyz(7.9099, 3.9721, 36.4188)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1EA6 #A5A61E
analogous
#1E61A6 #1F1EA6 #631EA6
triadic
#1F1EA6 #A61F1E #1EA61F
tetradic
#1F1EA6 #A61E61 #A5A61E #1EA663
square
#1F1EA6 #A61E61 #A5A61E #1EA663
split-complementary
#1F1EA6 #A6631E #61A61E
monochromatic
#0C0B3E #151572 #1F1EA6 #2A29D8 #5E5DE2

Accessibility & contrast

On white

11.70
#1F1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1EA6
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1EA6#FFFFFF#000000##FFFFFF
##1F1EA61.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAA
Deuteranopia (green-blind)
#0031A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f1ea6;
/* rgb */ color: rgb(31, 30, 166);
/* oklch */ color: oklch(36.2% 0.204 270.3);
Tailwind
colors: {
  custom: {
    50: '#765ec2',
    500: '#1f1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #1f1ea6;
$custom-light: #765ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1ea6",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 240.441,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36196,
    "c": 0.20437,
    "h": 270.3
  },
  "luminance": 0.03973
}

Semantic roles & 50–950 ramp

primary
#1F1EA6
secondary
#C5C65A
accent
#EC3CEB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0A0413
muted
#7C7982

Preview Lab

Preview with #1F1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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