#1F156C#1F156C

#1F156C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.141 H 277.5°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#1F156C
RGBrgb(31, 21, 108)
HSLhsl(247, 67%, 25%)
HSVhsv(247, 81%, 42%)
CMYKcmyk(71.3%, 80.6%, 0%, 57.6%)
CIE-LABlab(15.01, 33.31, -48.36)
CIE-LCHlch(15.01, 58.72, 304.56°)
OKLaboklab(28.19% 0.0184 -0.1397)
OKLCHoklch(28.19% 0.141 277.5)
XYZxyz(3.5391, 1.9100, 14.3666)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F156C #626C15
analogous
#15366C #1F156C #4B156C
triadic
#1F156C #6C1F15 #156C1F
tetradic
#1F156C #6C1536 #626C15 #156C4B
square
#1F156C #6C1536 #626C15 #156C4B
split-complementary
#1F156C #6C4B15 #366C15
monochromatic
#07051A #100B39 #1F156C #2E1F9F #3C29D2

Accessibility & contrast

On white

15.20
#1F156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F156C
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F156C#FFFFFF#000000##FFFFFF
##1F156C1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f156c;
/* rgb */ color: rgb(31, 21, 108);
/* oklch */ color: oklch(28.2% 0.141 277.5);
Tailwind
colors: {
  custom: {
    50: '#685497',
    500: '#1f156c',
    950: '#000000',
  },
}
SCSS
$custom: #1f156c;
$custom-light: #685497;
$custom-dark: #000000;
JSON
{
  "hex": "#1f156c",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 246.897,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28192,
    "c": 0.14092,
    "h": 277.5
  },
  "luminance": 0.0191
}

Semantic roles & 50–950 ramp

primary
#1F156C
secondary
#97A33A
accent
#EA3DD6
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F156C

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

Preview Lab → · Contrast checker → · Palette generator →

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