#1F137F#1F137F

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

Color values

HEX#1F137F
RGBrgb(31, 19, 127)
HSLhsl(247, 74%, 29%)
HSVhsv(247, 85%, 50%)
CMYKcmyk(75.6%, 85%, 0%, 50.2%)
CIE-LABlab(16.94, 40.61, -57.42)
CIE-LCHlch(16.94, 70.33, 305.27°)
OKLaboklab(30.2% 0.0139 -0.166)
OKLCHoklch(30.2% 0.167 274.8)
XYZxyz(4.6274, 2.2889, 20.2725)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F137F #737F13
analogous
#133D7F #1F137F #55137F
triadic
#1F137F #7F1F13 #137F1F
tetradic
#1F137F #7F133D #737F13 #137F55
square
#1F137F #7F133D #737F13 #137F55
split-complementary
#1F137F #7F5513 #3D7F13
monochromatic
#06041B #120B4A #1F137F #2C1BB4 #412DE0

Accessibility & contrast

On white

14.41
#1F137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F137F
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F137F#FFFFFF#000000##FFFFFF
##1F137F1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f137f;
/* rgb */ color: rgb(31, 19, 127);
/* oklch */ color: oklch(30.2% 0.167 274.8);
Tailwind
colors: {
  custom: {
    50: '#6d55a5',
    500: '#1f137f',
    950: '#000000',
  },
}
SCSS
$custom: #1f137f;
$custom-light: #6d55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f137f",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 246.667,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30203,
    "c": 0.16659,
    "h": 274.8
  },
  "luminance": 0.02289
}

Semantic roles & 50–950 ramp

primary
#1F137F
secondary
#A7B439
accent
#F137DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F137F

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

Preview Lab → · Contrast checker → · Palette generator →

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