#1F1590#1F1590

#1F1590 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.5% C 0.185 H 272.6°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#1F1590
RGBrgb(31, 21, 144)
HSLhsl(245, 75%, 32%)
HSVhsv(245, 85%, 56%)
CMYKcmyk(78.5%, 85.4%, 0%, 43.5%)
CIE-LABlab(19.39, 45.03, -64.03)
CIE-LCHlch(19.39, 78.28, 305.12°)
OKLaboklab(32.52% 0.0084 -0.1852)
OKLCHoklch(32.52% 0.185 272.6)
XYZxyz(5.8656, 2.8406, 26.6193)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1590 #869015
analogous
#154990 #1F1590 #5D1590
triadic
#1F1590 #901F15 #15901F
tetradic
#1F1590 #901549 #869015 #15905D
square
#1F1590 #901549 #869015 #15905D
split-complementary
#1F1590 #905D15 #499015
monochromatic
#080525 #140D5B #1F1590 #2A1DC5 #4A3DE3

Accessibility & contrast

On white

13.39
#1F1590 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F1590 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1590
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1590#FFFFFF#000000##FFFFFF
##1F15901.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#00298E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f1590;
/* rgb */ color: rgb(31, 21, 144);
/* oklch */ color: oklch(32.5% 0.185 272.6);
Tailwind
colors: {
  custom: {
    50: '#7157b2',
    500: '#1f1590',
    950: '#000000',
  },
}
SCSS
$custom: #1f1590;
$custom-light: #7157b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1590",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 144
  },
  "hsl": {
    "h": 244.878,
    "s": 74.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32515,
    "c": 0.18541,
    "h": 272.6
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#1F1590
secondary
#B8C23E
accent
#F137E2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F1590

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

Preview Lab → · Contrast checker → · Palette generator →

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