#1F155A#1F155A

#1F155A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.2% C 0.117 H 281.3°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#1F155A
RGBrgb(31, 21, 90)
HSLhsl(249, 62%, 22%)
HSVhsv(249, 77%, 35%)
CMYKcmyk(65.6%, 76.7%, 0%, 64.7%)
CIE-LABlab(13.02, 27.07, -39.69)
CIE-LCHlch(13.02, 48.04, 304.29°)
OKLaboklab(26.19% 0.0228 -0.1144)
OKLCHoklch(26.19% 0.117 281.3)
XYZxyz(2.6781, 1.5656, 9.8319)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F155A #505A15
analogous
#152E5A #1F155A #42155A
triadic
#1F155A #5A1F15 #155A1F
tetradic
#1F155A #5A152E #505A15 #155A42
square
#1F155A #5A152E #505A15 #155A42
split-complementary
#1F155A #5A4215 #2E5A15
monochromatic
#090619 #0E0928 #1F155A #30218C #412CBD

Accessibility & contrast

On white

15.99
#1F155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#1F155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F155A
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F155A#FFFFFF#000000##FFFFFF
##1F155A1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f155a;
/* rgb */ color: rgb(31, 21, 90);
/* oklch */ color: oklch(26.2% 0.117 281.3);
Tailwind
colors: {
  custom: {
    50: '#635389',
    500: '#1f155a',
    950: '#000000',
  },
}
SCSS
$custom: #1f155a;
$custom-light: #635389;
$custom-dark: #000000;
JSON
{
  "hex": "#1f155a",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 248.696,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26189,
    "c": 0.11668,
    "h": 281.3
  },
  "luminance": 0.01566
}

Semantic roles & 50–950 ramp

primary
#1F155A
secondary
#859239
accent
#E543CE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F155A

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

Preview Lab → · Contrast checker → · Palette generator →

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