#1F1EA7#1F1EA7

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

Color values

HEX#1F1EA7
RGBrgb(31, 30, 167)
HSLhsl(240, 70%, 39%)
HSVhsv(240, 82%, 65%)
CMYKcmyk(81.4%, 82%, 0%, 34.5%)
CIE-LABlab(23.70, 48.02, -70.99)
CIE-LCHlch(23.70, 85.71, 304.07°)
OKLaboklab(36.32% 0.0008 -0.2055)
OKLCHoklch(36.32% 0.206 270.2)
XYZxyz(8.0020, 4.0089, 36.9038)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1EA7 #A6A71E
analogous
#1E61A7 #1F1EA7 #631EA7
triadic
#1F1EA7 #A71F1E #1EA71F
tetradic
#1F1EA7 #A71E61 #A6A71E #1EA763
square
#1F1EA7 #A71E61 #A6A71E #1EA763
split-complementary
#1F1EA7 #A7631E #61A71E
monochromatic
#0C0B3F #151573 #1F1EA7 #2B2AD9 #5E5DE2

Accessibility & contrast

On white

11.65
#1F1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1EA7
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1EA7#FFFFFF#000000##FFFFFF
##1F1EA71.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0031A5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f1ea7;
/* rgb */ color: rgb(31, 30, 167);
/* oklch */ color: oklch(36.3% 0.206 270.2);
Tailwind
colors: {
  custom: {
    50: '#765ec3',
    500: '#1f1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #1f1ea7;
$custom-light: #765ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1ea7",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 240.438,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36316,
    "c": 0.20554,
    "h": 270.2
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#1F1EA7
secondary
#C5C65B
accent
#EC3BEB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0A0413
muted
#7C7982

Preview Lab

Preview with #1F1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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