#1F31A9#1F31A9

#1F31A9 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.190 H 268.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#1F31A9
RGBrgb(31, 49, 169)
HSLhsl(232, 69%, 39%)
HSVhsv(232, 82%, 66%)
CMYKcmyk(81.7%, 71%, 0%, 33.7%)
CIE-LABlab(27.71, 37.97, -65.56)
CIE-LCHlch(27.71, 75.76, 300.07°)
OKLaboklab(39.23% -0.0056 -0.19)
OKLCHoklch(39.23% 0.19 268.3)
XYZxyz(8.8223, 5.3515, 38.0964)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F31A9 #A9971F
analogous
#1F76A9 #1F31A9 #521FA9
triadic
#1F31A9 #A91F31 #31A91F
tetradic
#1F31A9 #A91F76 #A9971F #1FA952
square
#1F31A9 #A91F76 #A9971F #1FA952
split-complementary
#1F31A9 #A9521F #76A91F
monochromatic
#0C1342 #162275 #1F31A9 #2D43D8 #6071E2

Accessibility & contrast

On white

10.14
#1F31A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1F31A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F31A9
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F31A9#FFFFFF#000000##FFFFFF
##1F31A91.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003BA7
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f31a9;
/* rgb */ color: rgb(31, 49, 169);
/* oklch */ color: oklch(39.2% 0.190 268.3);
Tailwind
colors: {
  custom: {
    50: '#7569c4',
    500: '#1f31a9',
    950: '#000000',
  },
}
SCSS
$custom: #1f31a9;
$custom-light: #7569c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f31a9",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 232.174,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39226,
    "c": 0.19004,
    "h": 268.3
  },
  "luminance": 0.05353
}

Semantic roles & 50–950 ramp

primary
#1F31A9
secondary
#C7B95D
accent
#D53CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1F31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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