#1F146B#1F146B

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

Color values

HEX#1F146B
RGBrgb(31, 20, 107)
HSLhsl(248, 69%, 25%)
HSVhsv(248, 81%, 42%)
CMYKcmyk(71%, 81.3%, 0%, 58%)
CIE-LABlab(14.70, 33.53, -48.22)
CIE-LCHlch(14.70, 58.73, 304.82°)
OKLaboklab(27.94% 0.0192 -0.1393)
OKLCHoklch(27.94% 0.141 277.9)
XYZxyz(3.4682, 1.8529, 14.0819)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F146B #606B14
analogous
#14356B #1F146B #4A146B
triadic
#1F146B #6B1F14 #146B1F
tetradic
#1F146B #6B1435 #606B14 #146B4A
square
#1F146B #6B1435 #606B14 #146B4A
split-complementary
#1F146B #6B4A14 #356B14
monochromatic
#07051A #100A37 #1F146B #2E1E9F #3D27D2

Accessibility & contrast

On white

15.32
#1F146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1F146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F146B
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F146B#FFFFFF#000000##FFFFFF
##1F146B1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286D
Deuteranopia (green-blind)
#002169
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f146b;
/* rgb */ color: rgb(31, 20, 107);
/* oklch */ color: oklch(27.9% 0.141 277.9);
Tailwind
colors: {
  custom: {
    50: '#675496',
    500: '#1f146b',
    950: '#000000',
  },
}
SCSS
$custom: #1f146b;
$custom-light: #675496;
$custom-dark: #000000;
JSON
{
  "hex": "#1f146b",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 247.586,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27939,
    "c": 0.14062,
    "h": 277.9
  },
  "luminance": 0.01853
}

Semantic roles & 50–950 ramp

primary
#1F146B
secondary
#95A239
accent
#EB3CD5
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F146B

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

Preview Lab → · Contrast checker → · Palette generator →

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