#1F31A5#1F31A5

#1F31A5 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.185 H 268.4°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#1F31A5
RGBrgb(31, 49, 165)
HSLhsl(232, 68%, 38%)
HSVhsv(232, 81%, 65%)
CMYKcmyk(81.2%, 70.3%, 0%, 35.3%)
CIE-LABlab(27.31, 36.51, -63.82)
CIE-LCHlch(27.31, 73.53, 299.77°)
OKLaboklab(38.81% -0.0052 -0.1849)
OKLCHoklch(38.81% 0.185 268.4)
XYZxyz(8.4526, 5.2036, 36.1489)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F31A5 #A5931F
analogous
#1F74A5 #1F31A5 #501FA5
triadic
#1F31A5 #A51F31 #31A51F
tetradic
#1F31A5 #A51F74 #A5931F #1FA550
square
#1F31A5 #A51F74 #A5931F #1FA550
split-complementary
#1F31A5 #A5501F #74A51F
monochromatic
#0C123E #152271 #1F31A5 #2A41D7 #5E6FE1

Accessibility & contrast

On white

10.29
#1F31A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1F31A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F31A5
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F31A5#FFFFFF#000000##FFFFFF
##1F31A51.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f31a5;
/* rgb */ color: rgb(31, 49, 165);
/* oklch */ color: oklch(38.8% 0.185 268.4);
Tailwind
colors: {
  custom: {
    50: '#7469c1',
    500: '#1f31a5',
    950: '#000000',
  },
}
SCSS
$custom: #1f31a5;
$custom-light: #7469c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f31a5",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 231.94,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38811,
    "c": 0.18496,
    "h": 268.4
  },
  "luminance": 0.05205
}

Semantic roles & 50–950 ramp

primary
#1F31A5
secondary
#C5B75B
accent
#D43DEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F31A5

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

Preview Lab → · Contrast checker → · Palette generator →

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