#1F146E#1F146E

#1F146E is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.144 H 277.3°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#1F146E
RGBrgb(31, 20, 110)
HSLhsl(247, 69%, 25%)
HSVhsv(247, 82%, 43%)
CMYKcmyk(71.8%, 81.8%, 0%, 56.9%)
CIE-LABlab(15.05, 34.54, -49.60)
CIE-LCHlch(15.05, 60.44, 304.85°)
OKLaboklab(28.29% 0.0184 -0.1433)
OKLCHoklch(28.29% 0.145 277.3)
XYZxyz(3.6288, 1.9171, 14.9276)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F146E #636E14
analogous
#14366E #1F146E #4C146E
triadic
#1F146E #6E1F14 #146E1F
tetradic
#1F146E #6E1436 #636E14 #146E4C
square
#1F146E #6E1436 #636E14 #146E4C
split-complementary
#1F146E #6E4C14 #366E14
monochromatic
#07051A #100B3A #1F146E #2E1DA2 #3C27D6

Accessibility & contrast

On white

15.18
#1F146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F146E
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F146E#FFFFFF#000000##FFFFFF
##1F146E1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f146e;
/* rgb */ color: rgb(31, 20, 110);
/* oklch */ color: oklch(28.3% 0.144 277.3);
Tailwind
colors: {
  custom: {
    50: '#685499',
    500: '#1f146e',
    950: '#000000',
  },
}
SCSS
$custom: #1f146e;
$custom-light: #685499;
$custom-dark: #000000;
JSON
{
  "hex": "#1f146e",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 247.333,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28288,
    "c": 0.1445,
    "h": 277.3
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F146E

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

Preview Lab → · Contrast checker → · Palette generator →

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