#1F147E#1F147E

#1F147E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.165 H 274.8°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#1F147E
RGBrgb(31, 20, 126)
HSLhsl(246, 73%, 29%)
HSVhsv(246, 84%, 49%)
CMYKcmyk(75.4%, 84.1%, 0%, 50.6%)
CIE-LABlab(16.98, 39.80, -56.71)
CIE-LCHlch(16.98, 69.29, 305.06°)
OKLaboklab(30.2% 0.0138 -0.164)
OKLCHoklch(30.2% 0.165 274.8)
XYZxyz(4.5799, 2.2975, 19.9367)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F147E #737E14
analogous
#143E7E #1F147E #54147E
triadic
#1F147E #7E1F14 #147E1F
tetradic
#1F147E #7E143E #737E14 #147E54
square
#1F147E #7E143E #737E14 #147E54
split-complementary
#1F147E #7E5414 #3E7E14
monochromatic
#06041A #120C49 #1F147E #2C1CB3 #412EDE

Accessibility & contrast

On white

14.39
#1F147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1F147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F147E
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F147E#FFFFFF#000000##FFFFFF
##1F147E1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f147e;
/* rgb */ color: rgb(31, 20, 126);
/* oklch */ color: oklch(30.2% 0.165 274.8);
Tailwind
colors: {
  custom: {
    50: '#6c55a5',
    500: '#1f147e',
    950: '#000000',
  },
}
SCSS
$custom: #1f147e;
$custom-light: #6c55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f147e",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 246.226,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30196,
    "c": 0.16457,
    "h": 274.8
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#1F147E
secondary
#A7B33A
accent
#EF38DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F147E

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

Preview Lab → · Contrast checker → · Palette generator →

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