#1F146C#1F146C

#1F146C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.142 H 277.7°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#1F146C
RGBrgb(31, 20, 108)
HSLhsl(248, 69%, 25%)
HSVhsv(248, 81%, 42%)
CMYKcmyk(71.3%, 81.5%, 0%, 57.6%)
CIE-LABlab(14.81, 33.87, -48.68)
CIE-LCHlch(14.81, 59.31, 304.83°)
OKLaboklab(28.06% 0.019 -0.1406)
OKLCHoklch(28.06% 0.142 277.7)
XYZxyz(3.5211, 1.8740, 14.3606)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F146C #616C14
analogous
#14356C #1F146C #4B146C
triadic
#1F146C #6C1F14 #146C1F
tetradic
#1F146C #6C1435 #616C14 #146C4B
square
#1F146C #6C1435 #616C14 #146C4B
split-complementary
#1F146C #6C4B14 #356C14
monochromatic
#07051A #100A38 #1F146C #2E1EA0 #3D27D3

Accessibility & contrast

On white

15.27
#1F146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F146C
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F146C#FFFFFF#000000##FFFFFF
##1F146C1.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00226A
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f146c;
/* rgb */ color: rgb(31, 20, 108);
/* oklch */ color: oklch(28.1% 0.142 277.7);
Tailwind
colors: {
  custom: {
    50: '#685497',
    500: '#1f146c',
    950: '#000000',
  },
}
SCSS
$custom: #1f146c;
$custom-light: #685497;
$custom-dark: #000000;
JSON
{
  "hex": "#1f146c",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 247.5,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28055,
    "c": 0.14192,
    "h": 277.7
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#1F146C
secondary
#96A339
accent
#EC3CD6
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F146C

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

Preview Lab → · Contrast checker → · Palette generator →

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