#1F146F#1F146F

#1F146F is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.4% C 0.146 H 277.1°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#1F146F
RGBrgb(31, 20, 111)
HSLhsl(247, 69%, 26%)
HSVhsv(247, 82%, 44%)
CMYKcmyk(72.1%, 82%, 0%, 56.5%)
CIE-LABlab(15.16, 34.88, -50.06)
CIE-LCHlch(15.16, 61.01, 304.87°)
OKLaboklab(28.41% 0.0181 -0.1446)
OKLCHoklch(28.41% 0.146 277.1)
XYZxyz(3.6835, 1.9390, 15.2160)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F146F #646F14
analogous
#14366F #1F146F #4C146F
triadic
#1F146F #6F1F14 #146F1F
tetradic
#1F146F #6F1436 #646F14 #146F4C
square
#1F146F #6F1436 #646F14 #146F4C
split-complementary
#1F146F #6F4C14 #366F14
monochromatic
#07051A #110B3B #1F146F #2D1DA3 #3C27D7

Accessibility & contrast

On white

15.13
#1F146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F146F
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F146F#FFFFFF#000000##FFFFFF
##1F146F1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00226D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f146f;
/* rgb */ color: rgb(31, 20, 111);
/* oklch */ color: oklch(28.4% 0.146 277.1);
Tailwind
colors: {
  custom: {
    50: '#685499',
    500: '#1f146f',
    950: '#000000',
  },
}
SCSS
$custom: #1f146f;
$custom-light: #685499;
$custom-dark: #000000;
JSON
{
  "hex": "#1f146f",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 247.253,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28405,
    "c": 0.14578,
    "h": 277.1
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#1F146F
secondary
#98A639
accent
#EC3CD7
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F146F

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

Preview Lab → · Contrast checker → · Palette generator →

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