#1F158D#1F158D

#1F158D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.182 H 272.9°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#1F158D
RGBrgb(31, 21, 141)
HSLhsl(245, 74%, 32%)
HSVhsv(245, 85%, 55%)
CMYKcmyk(78%, 85.1%, 0%, 44.7%)
CIE-LABlab(19.01, 44.09, -62.79)
CIE-LCHlch(19.01, 76.73, 305.08°)
OKLaboklab(32.14% 0.0093 -0.1816)
OKLCHoklch(32.14% 0.182 272.9)
XYZxyz(5.6394, 2.7501, 25.4278)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F158D #838D15
analogous
#15478D #1F158D #5B158D
triadic
#1F158D #8D1F15 #158D1F
tetradic
#1F158D #8D1547 #838D15 #158D5B
square
#1F158D #8D1547 #838D15 #158D5B
split-complementary
#1F158D #8D5B15 #478D15
monochromatic
#080522 #130D58 #1F158D #2B1DC2 #493BE2

Accessibility & contrast

On white

13.55
#1F158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F158D
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F158D#FFFFFF#000000##FFFFFF
##1F158D1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f158d;
/* rgb */ color: rgb(31, 21, 141);
/* oklch */ color: oklch(32.1% 0.182 272.9);
Tailwind
colors: {
  custom: {
    50: '#7057b0',
    500: '#1f158d',
    950: '#000000',
  },
}
SCSS
$custom: #1f158d;
$custom-light: #7057b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f158d",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 245,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32144,
    "c": 0.18187,
    "h": 272.9
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#1F158D
secondary
#B6C13D
accent
#F137E1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F158D

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

Preview Lab → · Contrast checker → · Palette generator →

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