#1F137B#1F137B

#1F137B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.162 H 275.3°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#1F137B
RGBrgb(31, 19, 123)
HSLhsl(247, 73%, 28%)
HSVhsv(247, 85%, 48%)
CMYKcmyk(74.8%, 84.6%, 0%, 51.8%)
CIE-LABlab(16.44, 39.33, -55.69)
CIE-LCHlch(16.44, 68.18, 305.23°)
OKLaboklab(29.72% 0.0151 -0.161)
OKLCHoklch(29.72% 0.162 275.3)
XYZxyz(4.3719, 2.1867, 18.9267)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F137B #6F7B13
analogous
#133B7B #1F137B #53137B
triadic
#1F137B #7B1F13 #137B1F
tetradic
#1F137B #7B133B #6F7B13 #137B53
square
#1F137B #7B133B #6F7B13 #137B53
split-complementary
#1F137B #7B5313 #3B7B13
monochromatic
#07041B #120B46 #1F137B #2C1BB0 #3F2ADE

Accessibility & contrast

On white

14.61
#1F137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F137B
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F137B#FFFFFF#000000##FFFFFF
##1F137B1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f137b;
/* rgb */ color: rgb(31, 19, 123);
/* oklch */ color: oklch(29.7% 0.162 275.3);
Tailwind
colors: {
  custom: {
    50: '#6c54a2',
    500: '#1f137b',
    950: '#000000',
  },
}
SCSS
$custom: #1f137b;
$custom-light: #6c54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f137b",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 246.923,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29715,
    "c": 0.1617,
    "h": 275.3
  },
  "luminance": 0.02187
}

Semantic roles & 50–950 ramp

primary
#1F137B
secondary
#A3B139
accent
#F038DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F137B

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

Preview Lab → · Contrast checker → · Palette generator →

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