#1F317D#1F317D

#1F317D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 34.9% C 0.131 H 268.5°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#1F317D
RGBrgb(31, 49, 125)
HSLhsl(229, 60%, 31%)
HSVhsv(229, 75%, 49%)
CMYKcmyk(75.2%, 60.8%, 0%, 51%)
CIE-LABlab(23.57, 21.24, -45.25)
CIE-LCHlch(23.57, 49.99, 295.15°)
OKLaboklab(34.92% -0.0033 -0.1305)
OKLCHoklch(34.92% 0.131 268.5)
XYZxyz(5.3638, 3.9680, 19.8813)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F317D #7D6B1F
analogous
#1F607D #1F317D #3C1F7D
triadic
#1F317D #7D1F31 #317D1F
tetradic
#1F317D #7D1F60 #7D6B1F #1F7D3C
square
#1F317D #7D1F60 #7D6B1F #1F7D3C
split-complementary
#1F317D #7D3C1F #607D1F
monochromatic
#070B1B #131E4C #1F317D #2B44AE #4560D1

Accessibility & contrast

On white

11.71
#1F317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F317D
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F317D#FFFFFF#000000##FFFFFF
##1F317D1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f317d;
/* rgb */ color: rgb(31, 49, 125);
/* oklch */ color: oklch(34.9% 0.131 268.5);
Tailwind
colors: {
  custom: {
    50: '#6968a3',
    500: '#1f317d',
    950: '#000000',
  },
}
SCSS
$custom: #1f317d;
$custom-light: #6968a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f317d",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 228.511,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34919,
    "c": 0.13058,
    "h": 268.5
  },
  "luminance": 0.03969
}

Semantic roles & 50–950 ramp

primary
#1F317D
secondary
#B09C48
accent
#C544E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F317D

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

Preview Lab → · Contrast checker → · Palette generator →

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