#1F147F#1F147F

#1F147F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.166 H 274.7°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#1F147F
RGBrgb(31, 20, 127)
HSLhsl(246, 73%, 29%)
HSVhsv(246, 84%, 50%)
CMYKcmyk(75.6%, 84.3%, 0%, 50.2%)
CIE-LABlab(17.10, 40.12, -57.14)
CIE-LCHlch(17.10, 69.82, 305.07°)
OKLaboklab(30.32% 0.0135 -0.1652)
OKLCHoklch(30.32% 0.166 274.7)
XYZxyz(4.6447, 2.3235, 20.2782)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F147F #747F14
analogous
#143F7F #1F147F #55147F
triadic
#1F147F #7F1F14 #147F1F
tetradic
#1F147F #7F143F #747F14 #147F55
square
#1F147F #7F143F #747F14 #147F55
split-complementary
#1F147F #7F5514 #3F7F14
monochromatic
#06041A #120C4A #1F147F #2C1CB4 #412FDE

Accessibility & contrast

On white

14.34
#1F147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F147F
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F147F#FFFFFF#000000##FFFFFF
##1F147F1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f147f;
/* rgb */ color: rgb(31, 20, 127);
/* oklch */ color: oklch(30.3% 0.166 274.7);
Tailwind
colors: {
  custom: {
    50: '#6c55a5',
    500: '#1f147f',
    950: '#000000',
  },
}
SCSS
$custom: #1f147f;
$custom-light: #6c55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f147f",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 246.168,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30317,
    "c": 0.16579,
    "h": 274.7
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#1F147F
secondary
#A8B43B
accent
#EF38DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F147F

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

Preview Lab → · Contrast checker → · Palette generator →

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