#1F32A5#1F32A5

#1F32A5 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.184 H 268.2°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#1F32A5
RGBrgb(31, 50, 165)
HSLhsl(231, 68%, 38%)
HSVhsv(231, 81%, 65%)
CMYKcmyk(81.2%, 69.7%, 0%, 35.3%)
CIE-LABlab(27.54, 35.88, -63.44)
CIE-LCHlch(27.54, 72.88, 299.49°)
OKLaboklab(38.98% -0.0056 -0.1838)
OKLCHoklch(38.98% 0.184 268.2)
XYZxyz(8.4949, 5.2881, 36.1630)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F32A5 #A5921F
analogous
#1F75A5 #1F32A5 #4F1FA5
triadic
#1F32A5 #A51F32 #32A51F
tetradic
#1F32A5 #A51F75 #A5921F #1FA54F
square
#1F32A5 #A51F75 #A5921F #1FA54F
split-complementary
#1F32A5 #A54F1F #75A51F
monochromatic
#0C133E #152271 #1F32A5 #2A43D7 #5E70E1

Accessibility & contrast

On white

10.21
#1F32A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#1F32A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F32A5
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F32A5#FFFFFF#000000##FFFFFF
##1F32A51.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f32a5;
/* rgb */ color: rgb(31, 50, 165);
/* oklch */ color: oklch(39.0% 0.184 268.2);
Tailwind
colors: {
  custom: {
    50: '#746ac1',
    500: '#1f32a5',
    950: '#000000',
  },
}
SCSS
$custom: #1f32a5;
$custom-light: #746ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f32a5",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 165
  },
  "hsl": {
    "h": 231.493,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3898,
    "c": 0.18385,
    "h": 268.2
  },
  "luminance": 0.05289
}

Semantic roles & 50–950 ramp

primary
#1F32A5
secondary
#C5B65B
accent
#D23DEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F32A5

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

Preview Lab → · Contrast checker → · Palette generator →

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