#1F158E#1F158E

#1F158E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.183 H 272.8°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#1F158E
RGBrgb(31, 21, 142)
HSLhsl(245, 74%, 32%)
HSVhsv(245, 85%, 56%)
CMYKcmyk(78.2%, 85.2%, 0%, 44.3%)
CIE-LABlab(19.14, 44.41, -63.21)
CIE-LCHlch(19.14, 77.25, 305.09°)
OKLaboklab(32.27% 0.009 -0.1828)
OKLCHoklch(32.27% 0.183 272.8)
XYZxyz(5.7141, 2.7800, 25.8214)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F158E #848E15
analogous
#15478E #1F158E #5C158E
triadic
#1F158E #8E1F15 #158E1F
tetradic
#1F158E #8E1547 #848E15 #158E5C
square
#1F158E #8E1547 #848E15 #158E5C
split-complementary
#1F158E #8E5C15 #478E15
monochromatic
#080523 #130D59 #1F158E #2B1DC3 #493BE2

Accessibility & contrast

On white

13.49
#1F158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F158E
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F158E#FFFFFF#000000##FFFFFF
##1F158E1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f158e;
/* rgb */ color: rgb(31, 21, 142);
/* oklch */ color: oklch(32.3% 0.183 272.8);
Tailwind
colors: {
  custom: {
    50: '#7057b0',
    500: '#1f158e',
    950: '#000000',
  },
}
SCSS
$custom: #1f158e;
$custom-light: #7057b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f158e",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 244.959,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32267,
    "c": 0.18305,
    "h": 272.8
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F158E

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

Preview Lab → · Contrast checker → · Palette generator →

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