#1F156D#1F156D

#1F156D is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.142 H 277.3°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#1F156D
RGBrgb(31, 21, 109)
HSLhsl(247, 68%, 25%)
HSVhsv(247, 81%, 43%)
CMYKcmyk(71.6%, 80.7%, 0%, 57.3%)
CIE-LABlab(15.12, 33.65, -48.82)
CIE-LCHlch(15.12, 59.29, 304.58°)
OKLaboklab(28.31% 0.0181 -0.1411)
OKLCHoklch(28.31% 0.142 277.3)
XYZxyz(3.5927, 1.9314, 14.6485)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F156D #636D15
analogous
#15376D #1F156D #4B156D
triadic
#1F156D #6D1F15 #156D1F
tetradic
#1F156D #6D1537 #636D15 #156D4B
square
#1F156D #6D1537 #636D15 #156D4B
split-complementary
#1F156D #6D4B15 #376D15
monochromatic
#07051A #100B3A #1F156D #2E1FA0 #3C29D4

Accessibility & contrast

On white

15.15
#1F156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F156D
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F156D#FFFFFF#000000##FFFFFF
##1F156D1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296F
Deuteranopia (green-blind)
#00226B
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f156d;
/* rgb */ color: rgb(31, 21, 109);
/* oklch */ color: oklch(28.3% 0.142 277.3);
Tailwind
colors: {
  custom: {
    50: '#685498',
    500: '#1f156d',
    950: '#000000',
  },
}
SCSS
$custom: #1f156d;
$custom-light: #685498;
$custom-dark: #000000;
JSON
{
  "hex": "#1f156d",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 246.818,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28307,
    "c": 0.14222,
    "h": 277.3
  },
  "luminance": 0.01932
}

Semantic roles & 50–950 ramp

primary
#1F156D
secondary
#98A33A
accent
#EB3DD7
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F156D

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

Preview Lab → · Contrast checker → · Palette generator →

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