#1F137A#1F137A

#1F137A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.160 H 275.5°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#1F137A
RGBrgb(31, 19, 122)
HSLhsl(247, 73%, 28%)
HSVhsv(247, 84%, 48%)
CMYKcmyk(74.6%, 84.4%, 0%, 52.2%)
CIE-LABlab(16.31, 39.01, -55.26)
CIE-LCHlch(16.31, 67.64, 305.22°)
OKLaboklab(29.59% 0.0154 -0.1597)
OKLCHoklch(29.59% 0.16 275.5)
XYZxyz(4.3096, 2.1618, 18.5987)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F137A #6E7A13
analogous
#133B7A #1F137A #52137A
triadic
#1F137A #7A1F13 #137A1F
tetradic
#1F137A #7A133B #6E7A13 #137A52
square
#1F137A #7A133B #6E7A13 #137A52
split-complementary
#1F137A #7A5213 #3B7A13
monochromatic
#07041A #120B45 #1F137A #2C1BAF #3F2ADE

Accessibility & contrast

On white

14.66
#1F137A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F137A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F137A
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F137A#FFFFFF#000000##FFFFFF
##1F137A1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f137a;
/* rgb */ color: rgb(31, 19, 122);
/* oklch */ color: oklch(29.6% 0.160 275.5);
Tailwind
colors: {
  custom: {
    50: '#6b54a2',
    500: '#1f137a',
    950: '#000000',
  },
}
SCSS
$custom: #1f137a;
$custom-light: #6b54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f137a",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 122
  },
  "hsl": {
    "h": 246.99,
    "s": 73.05,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29594,
    "c": 0.16048,
    "h": 275.5
  },
  "luminance": 0.02162
}

Semantic roles & 50–950 ramp

primary
#1F137A
secondary
#A2B039
accent
#F038DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F137A

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

Preview Lab → · Contrast checker → · Palette generator →

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