#1F146A#1F146A

#1F146A is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.139 H 278.0°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#1F146A
RGBrgb(31, 20, 106)
HSLhsl(248, 68%, 25%)
HSVhsv(248, 81%, 42%)
CMYKcmyk(70.8%, 81.1%, 0%, 58.4%)
CIE-LABlab(14.58, 33.20, -47.76)
CIE-LCHlch(14.58, 58.16, 304.80°)
OKLaboklab(27.82% 0.0195 -0.1379)
OKLCHoklch(27.82% 0.139 278)
XYZxyz(3.4159, 1.8319, 13.8065)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F146A #5F6A14
analogous
#14346A #1F146A #4A146A
triadic
#1F146A #6A1F14 #146A1F
tetradic
#1F146A #6A1434 #5F6A14 #146A4A
square
#1F146A #6A1434 #5F6A14 #146A4A
split-complementary
#1F146A #6A4A14 #346A14
monochromatic
#08051A #100A37 #1F146A #2E1E9D #3D27D1

Accessibility & contrast

On white

15.37
#1F146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F146A
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F146A#FFFFFF#000000##FFFFFF
##1F146A1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002168
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f146a;
/* rgb */ color: rgb(31, 20, 106);
/* oklch */ color: oklch(27.8% 0.139 278.0);
Tailwind
colors: {
  custom: {
    50: '#675496',
    500: '#1f146a',
    950: '#000000',
  },
}
SCSS
$custom: #1f146a;
$custom-light: #675496;
$custom-dark: #000000;
JSON
{
  "hex": "#1f146a",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 247.674,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27823,
    "c": 0.13932,
    "h": 278
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#1F146A
secondary
#94A139
accent
#EB3DD5
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F146A

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

Preview Lab → · Contrast checker → · Palette generator →

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