#1F1990#1F1990

#1F1990 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.182 H 272.3°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#1F1990
RGBrgb(31, 25, 144)
HSLhsl(243, 70%, 33%)
HSVhsv(243, 83%, 56%)
CMYKcmyk(78.5%, 82.6%, 0%, 43.5%)
CIE-LABlab(20.04, 43.12, -62.96)
CIE-LCHlch(20.04, 76.31, 304.41°)
OKLaboklab(32.96% 0.0073 -0.1822)
OKLCHoklch(32.96% 0.182 272.3)
XYZxyz(5.9451, 2.9995, 26.6458)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1990 #8A9019
analogous
#194E90 #1F1990 #5A1990
triadic
#1F1990 #901F19 #19901F
tetradic
#1F1990 #90194E #8A9019 #19905A
square
#1F1990 #90194E #8A9019 #19905A
split-complementary
#1F1990 #905A19 #4E9019
monochromatic
#090728 #14105C #1F1990 #2A22C4 #4C45DF

Accessibility & contrast

On white

13.13
#1F1990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1F1990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1990
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1990#FFFFFF#000000##FFFFFF
##1F19901.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002A8E
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f1990;
/* rgb */ color: rgb(31, 25, 144);
/* oklch */ color: oklch(33.0% 0.182 272.3);
Tailwind
colors: {
  custom: {
    50: '#7059b2',
    500: '#1f1990',
    950: '#000000',
  },
}
SCSS
$custom: #1f1990;
$custom-light: #7059b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1990",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 243.025,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.32963,
    "c": 0.18233,
    "h": 272.3
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#1F1990
secondary
#BAC045
accent
#ED3BE4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1990

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

Preview Lab → · Contrast checker → · Palette generator →

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