#1F146D#1F146D

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

Color values

HEX#1F146D
RGBrgb(31, 20, 109)
HSLhsl(247, 69%, 25%)
HSVhsv(247, 82%, 43%)
CMYKcmyk(71.6%, 81.7%, 0%, 57.3%)
CIE-LABlab(14.93, 34.21, -49.14)
CIE-LCHlch(14.93, 59.88, 304.84°)
OKLaboklab(28.17% 0.0187 -0.142)
OKLCHoklch(28.17% 0.143 277.5)
XYZxyz(3.5747, 1.8954, 14.6425)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F146D #626D14
analogous
#14356D #1F146D #4C146D
triadic
#1F146D #6D1F14 #146D1F
tetradic
#1F146D #6D1435 #626D14 #146D4C
square
#1F146D #6D1435 #626D14 #146D4C
split-complementary
#1F146D #6D4C14 #356D14
monochromatic
#07051A #100B39 #1F146D #2E1DA1 #3C27D4

Accessibility & contrast

On white

15.23
#1F146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F146D
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F146D#FFFFFF#000000##FFFFFF
##1F146D1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.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: #1f146d;
/* rgb */ color: rgb(31, 20, 109);
/* oklch */ color: oklch(28.2% 0.143 277.5);
Tailwind
colors: {
  custom: {
    50: '#685498',
    500: '#1f146d',
    950: '#000000',
  },
}
SCSS
$custom: #1f146d;
$custom-light: #685498;
$custom-dark: #000000;
JSON
{
  "hex": "#1f146d",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 247.416,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28171,
    "c": 0.14321,
    "h": 277.5
  },
  "luminance": 0.01896
}

Semantic roles & 50–950 ramp

primary
#1F146D
secondary
#97A439
accent
#EC3CD6
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F146D

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

Preview Lab → · Contrast checker → · Palette generator →

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