#1F159E#1F159E

#1F159E is a dark, highly saturated blue. Relative luminance 0.033; OKLCH L 34.3% C 0.202 H 271.3°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#1F159E
RGBrgb(31, 21, 158)
HSLhsl(244, 77%, 35%)
HSVhsv(244, 87%, 62%)
CMYKcmyk(80.4%, 86.7%, 0%, 38%)
CIE-LABlab(21.19, 49.31, -69.69)
CIE-LCHlch(21.19, 85.37, 305.28°)
OKLaboklab(34.26% 0.0047 -0.2016)
OKLCHoklch(34.26% 0.202 271.3)
XYZxyz(7.0027, 3.2955, 32.6081)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F159E #949E15
analogous
#154F9E #1F159E #64159E
triadic
#1F159E #9E1F15 #159E1F
tetradic
#1F159E #9E154F #949E15 #159E64
square
#1F159E #9E154F #949E15 #159E64
split-complementary
#1F159E #9E6415 #4F9E15
monochromatic
#0A0732 #140E68 #1F159E #2A1CD4 #5347E7

Accessibility & contrast

On white

12.66
#1F159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F159E
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F159E#FFFFFF#000000##FFFFFF
##1F159E1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0039A2
Deuteranopia (green-blind)
#002C9C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f159e;
/* rgb */ color: rgb(31, 21, 158);
/* oklch */ color: oklch(34.3% 0.202 271.3);
Tailwind
colors: {
  custom: {
    50: '#7458bc',
    500: '#1f159e',
    950: '#000000',
  },
}
SCSS
$custom: #1f159e;
$custom-light: #7458bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f159e",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 244.38,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3426,
    "c": 0.20163,
    "h": 271.3
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#1F159E
secondary
#BEC747
accent
#F335E5
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F159E

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

Preview Lab → · Contrast checker → · Palette generator →

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