#1F158F#1F158F

#1F158F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.184 H 272.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#1F158F
RGBrgb(31, 21, 143)
HSLhsl(245, 74%, 32%)
HSVhsv(245, 85%, 56%)
CMYKcmyk(78.3%, 85.3%, 0%, 43.9%)
CIE-LABlab(19.27, 44.72, -63.62)
CIE-LCHlch(19.27, 77.76, 305.10°)
OKLaboklab(32.39% 0.0087 -0.184)
OKLCHoklch(32.39% 0.184 272.7)
XYZxyz(5.7895, 2.8102, 26.2186)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F158F #858F15
analogous
#15488F #1F158F #5C158F
triadic
#1F158F #8F1F15 #158F1F
tetradic
#1F158F #8F1548 #858F15 #158F5C
square
#1F158F #8F1548 #858F15 #158F5C
split-complementary
#1F158F #8F5C15 #488F15
monochromatic
#080524 #130D5A #1F158F #2B1DC4 #4A3CE2

Accessibility & contrast

On white

13.44
#1F158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F158F
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F158F#FFFFFF#000000##FFFFFF
##1F158F1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f158f;
/* rgb */ color: rgb(31, 21, 143);
/* oklch */ color: oklch(32.4% 0.184 272.7);
Tailwind
colors: {
  custom: {
    50: '#7057b1',
    500: '#1f158f',
    950: '#000000',
  },
}
SCSS
$custom: #1f158f;
$custom-light: #7057b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f158f",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 244.918,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32391,
    "c": 0.18423,
    "h": 272.7
  },
  "luminance": 0.02811
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F158F

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

Preview Lab → · Contrast checker → · Palette generator →

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