#1F2B81#1F2B81

#1F2B81 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.144 H 270.4°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#1F2B81
RGBrgb(31, 43, 129)
HSLhsl(233, 61%, 31%)
HSVhsv(233, 76%, 51%)
CMYKcmyk(76%, 66.7%, 0%, 49.4%)
CIE-LABlab(22.31, 26.95, -49.82)
CIE-LCHlch(22.31, 56.64, 298.41°)
OKLaboklab(34.11% 0.001 -0.144)
OKLCHoklch(34.11% 0.144 270.4)
XYZxyz(5.3900, 3.6035, 21.1761)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B81 #81751F
analogous
#1F5C81 #1F2B81 #441F81
triadic
#1F2B81 #811F2B #2B811F
tetradic
#1F2B81 #811F5C #81751F #1F8144
square
#1F2B81 #811F5C #81751F #1F8144
split-complementary
#1F2B81 #81441F #5C811F
monochromatic
#070A1E #131B50 #1F2B81 #2B3BB2 #4759D3

Accessibility & contrast

On white

12.20
#1F2B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B81
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B81#FFFFFF#000000##FFFFFF
##1F2B811.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2b81;
/* rgb */ color: rgb(31, 43, 129);
/* oklch */ color: oklch(34.1% 0.144 270.4);
Tailwind
colors: {
  custom: {
    50: '#6b64a6',
    500: '#1f2b81',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b81;
$custom-light: #6b64a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b81",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 232.653,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34105,
    "c": 0.14401,
    "h": 270.4
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#1F2B81
secondary
#B4A748
accent
#D143E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #1F2B81

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

Preview Lab → · Contrast checker → · Palette generator →

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