#1F155D#1F155D

#1F155D is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.5% C 0.121 H 280.6°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#1F155D
RGBrgb(31, 21, 93)
HSLhsl(248, 63%, 22%)
HSVhsv(248, 77%, 36%)
CMYKcmyk(66.7%, 77.4%, 0%, 63.5%)
CIE-LABlab(13.34, 28.12, -41.19)
CIE-LCHlch(13.34, 49.87, 304.33°)
OKLaboklab(26.51% 0.0221 -0.1188)
OKLCHoklch(26.51% 0.121 280.6)
XYZxyz(2.8084, 1.6177, 10.5181)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F155D #535D15
analogous
#152F5D #1F155D #43155D
triadic
#1F155D #5D1F15 #155D1F
tetradic
#1F155D #5D152F #535D15 #155D43
square
#1F155D #5D152F #535D15 #155D43
split-complementary
#1F155D #5D4315 #2F5D15
monochromatic
#080619 #0E0A2B #1F155D #30208F #402CC1

Accessibility & contrast

On white

15.87
#1F155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F155D
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F155D#FFFFFF#000000##FFFFFF
##1F155D1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f155d;
/* rgb */ color: rgb(31, 21, 93);
/* oklch */ color: oklch(26.5% 0.121 280.6);
Tailwind
colors: {
  custom: {
    50: '#64548c',
    500: '#1f155d',
    950: '#000000',
  },
}
SCSS
$custom: #1f155d;
$custom-light: #64548c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f155d",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 248.333,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26512,
    "c": 0.12084,
    "h": 280.6
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

primary
#1F155D
secondary
#889439
accent
#E642CF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F155D

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

Preview Lab → · Contrast checker → · Palette generator →

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