#1F2A86#1F2A86

#1F2A86 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.152 H 270.5°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#1F2A86
RGBrgb(31, 42, 134)
HSLhsl(234, 62%, 32%)
HSVhsv(234, 77%, 53%)
CMYKcmyk(76.9%, 68.7%, 0%, 47.5%)
CIE-LABlab(22.54, 29.52, -52.59)
CIE-LCHlch(22.54, 60.31, 299.31°)
OKLaboklab(34.42% 0.0013 -0.1521)
OKLCHoklch(34.42% 0.152 270.5)
XYZxyz(5.6946, 3.6679, 22.9575)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A86 #867B1F
analogous
#1F5E86 #1F2A86 #471F86
triadic
#1F2A86 #861F2A #2A861F
tetradic
#1F2A86 #861F5E #867B1F #1F8647
square
#1F2A86 #861F5E #867B1F #1F8647
split-complementary
#1F2A86 #86471F #5E861F
monochromatic
#080B23 #141A54 #1F2A86 #2A3AB8 #4A59D5

Accessibility & contrast

On white

12.11
#1F2A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A86
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A86#FFFFFF#000000##FFFFFF
##1F2A861.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2a86;
/* rgb */ color: rgb(31, 42, 134);
/* oklch */ color: oklch(34.4% 0.152 270.5);
Tailwind
colors: {
  custom: {
    50: '#6c63aa',
    500: '#1f2a86',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a86;
$custom-light: #6c63aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a86",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 233.592,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34417,
    "c": 0.15213,
    "h": 270.5
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#1F2A86
secondary
#B8AC49
accent
#D442E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2A86

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

Preview Lab → · Contrast checker → · Palette generator →

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