#1F319D#1F319D

#1F319D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.175 H 268.5°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#1F319D
RGBrgb(31, 49, 157)
HSLhsl(231, 67%, 37%)
HSVhsv(231, 80%, 62%)
CMYKcmyk(80.3%, 68.8%, 0%, 38.4%)
CIE-LABlab(26.51, 33.56, -60.28)
CIE-LCHlch(26.51, 68.99, 299.11°)
OKLaboklab(37.99% -0.0045 -0.1746)
OKLCHoklch(37.99% 0.175 268.5)
XYZxyz(7.7471, 4.9214, 32.4334)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F319D #9D8B1F
analogous
#1F709D #1F319D #4C1F9D
triadic
#1F319D #9D1F31 #319D1F
tetradic
#1F319D #9D1F70 #9D8B1F #1F9D4C
square
#1F319D #9D1F70 #9D8B1F #1F9D4C
split-complementary
#1F319D #9D4C1F #709D1F
monochromatic
#0B1137 #15216A #1F319D #2941D0 #586BDE

Accessibility & contrast

On white

10.58
#1F319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1F319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F319D
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F319D#FFFFFF#000000##FFFFFF
##1F319D1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f319d;
/* rgb */ color: rgb(31, 49, 157);
/* oklch */ color: oklch(38.0% 0.175 268.5);
Tailwind
colors: {
  custom: {
    50: '#7169bb',
    500: '#1f319d',
    950: '#000000',
  },
}
SCSS
$custom: #1f319d;
$custom-light: #7169bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f319d",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 231.429,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37991,
    "c": 0.17462,
    "h": 268.5
  },
  "luminance": 0.04922
}

Semantic roles & 50–950 ramp

primary
#1F319D
secondary
#C2B256
accent
#D13EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F319D

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

Preview Lab → · Contrast checker → · Palette generator →

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