#1F155B#1F155B

#1F155B is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.3% C 0.118 H 281.0°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#1F155B
RGBrgb(31, 21, 91)
HSLhsl(249, 63%, 22%)
HSVhsv(249, 77%, 36%)
CMYKcmyk(65.9%, 76.9%, 0%, 64.3%)
CIE-LABlab(13.13, 27.42, -40.19)
CIE-LCHlch(13.13, 48.65, 304.30°)
OKLaboklab(26.3% 0.0226 -0.1159)
OKLCHoklch(26.3% 0.118 281)
XYZxyz(2.7210, 1.5828, 10.0576)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F155B #515B15
analogous
#152E5B #1F155B #42155B
triadic
#1F155B #5B1F15 #155B1F
tetradic
#1F155B #5B152E #515B15 #155B42
square
#1F155B #5B152E #515B15 #155B42
split-complementary
#1F155B #5B4215 #2E5B15
monochromatic
#080619 #0E0A29 #1F155B #30208D #412CBE

Accessibility & contrast

On white

15.95
#1F155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#1F155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F155B
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F155B#FFFFFF#000000##FFFFFF
##1F155B1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f155b;
/* rgb */ color: rgb(31, 21, 91);
/* oklch */ color: oklch(26.3% 0.118 281.0);
Tailwind
colors: {
  custom: {
    50: '#63538a',
    500: '#1f155b',
    950: '#000000',
  },
}
SCSS
$custom: #1f155b;
$custom-light: #63538a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f155b",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 248.571,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26296,
    "c": 0.11807,
    "h": 281
  },
  "luminance": 0.01583
}

Semantic roles & 50–950 ramp

primary
#1F155B
secondary
#869239
accent
#E642CE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F155B

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

Preview Lab → · Contrast checker → · Palette generator →

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