#1F2F81#1F2F81

#1F2F81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.139 H 269.3°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#1F2F81
RGBrgb(31, 47, 129)
HSLhsl(230, 61%, 31%)
HSVhsv(230, 76%, 51%)
CMYKcmyk(76%, 63.6%, 0%, 49.4%)
CIE-LABlab(23.37, 24.21, -48.09)
CIE-LCHlch(23.37, 53.84, 296.72°)
OKLaboklab(34.88% -0.0018 -0.1389)
OKLCHoklch(34.88% 0.139 269.3)
XYZxyz(5.5427, 3.9087, 21.2270)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F81 #81711F
analogous
#1F6081 #1F2F81 #401F81
triadic
#1F2F81 #811F2F #2F811F
tetradic
#1F2F81 #811F60 #81711F #1F8140
square
#1F2F81 #811F60 #81711F #1F8140
split-complementary
#1F2F81 #81401F #60811F
monochromatic
#070B1E #131D50 #1F2F81 #2B41B2 #475ED3

Accessibility & contrast

On white

11.79
#1F2F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F2F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F81
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F81#FFFFFF#000000##FFFFFF
##1F2F811.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2f81;
/* rgb */ color: rgb(31, 47, 129);
/* oklch */ color: oklch(34.9% 0.139 269.3);
Tailwind
colors: {
  custom: {
    50: '#6a67a6',
    500: '#1f2f81',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f81;
$custom-light: #6a67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f81",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 230.204,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3488,
    "c": 0.13893,
    "h": 269.3
  },
  "luminance": 0.03909
}

Semantic roles & 50–950 ramp

primary
#1F2F81
secondary
#B4A248
accent
#CA43E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2F81

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

Preview Lab → · Contrast checker → · Palette generator →

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