#1F137E#1F137E

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

Color values

HEX#1F137E
RGBrgb(31, 19, 126)
HSLhsl(247, 74%, 28%)
HSVhsv(247, 85%, 49%)
CMYKcmyk(75.4%, 84.9%, 0%, 50.6%)
CIE-LABlab(16.81, 40.29, -56.99)
CIE-LCHlch(16.81, 69.79, 305.26°)
OKLaboklab(30.08% 0.0142 -0.1648)
OKLCHoklch(30.08% 0.165 274.9)
XYZxyz(4.5626, 2.2630, 19.9310)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F137E #727E13
analogous
#133C7E #1F137E #54137E
triadic
#1F137E #7E1F13 #137E1F
tetradic
#1F137E #7E133C #727E13 #137E54
square
#1F137E #7E133C #727E13 #137E54
split-complementary
#1F137E #7E5413 #3C7E13
monochromatic
#07041B #120B49 #1F137E #2C1BB3 #402CDF

Accessibility & contrast

On white

14.46
#1F137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1F137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F137E
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F137E#FFFFFF#000000##FFFFFF
##1F137E1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f137e;
/* rgb */ color: rgb(31, 19, 126);
/* oklch */ color: oklch(30.1% 0.165 274.9);
Tailwind
colors: {
  custom: {
    50: '#6c55a5',
    500: '#1f137e',
    950: '#000000',
  },
}
SCSS
$custom: #1f137e;
$custom-light: #6c55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f137e",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 246.729,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30081,
    "c": 0.16538,
    "h": 274.9
  },
  "luminance": 0.02263
}

Semantic roles & 50–950 ramp

primary
#1F137E
secondary
#A6B439
accent
#F037DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F137E

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

Preview Lab → · Contrast checker → · Palette generator →

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