#1F2F86#1F2F86

#1F2F86 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.146 H 269.2°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#1F2F86
RGBrgb(31, 47, 134)
HSLhsl(231, 62%, 32%)
HSVhsv(231, 77%, 53%)
CMYKcmyk(76.9%, 64.9%, 0%, 47.5%)
CIE-LABlab(23.82, 26.15, -50.49)
CIE-LCHlch(23.82, 56.86, 297.38°)
OKLaboklab(35.35% -0.0019 -0.1459)
OKLCHoklch(35.35% 0.146 269.2)
XYZxyz(5.8832, 4.0449, 23.0203)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F86 #86761F
analogous
#1F6286 #1F2F86 #431F86
triadic
#1F2F86 #861F2F #2F861F
tetradic
#1F2F86 #861F62 #86761F #1F8643
square
#1F2F86 #861F62 #86761F #1F8643
split-complementary
#1F2F86 #86431F #62861F
monochromatic
#080C23 #141E54 #1F2F86 #2A40B8 #4A60D5

Accessibility & contrast

On white

11.61
#1F2F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F2F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F86
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F86#FFFFFF#000000##FFFFFF
##1F2F861.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#003484
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2f86;
/* rgb */ color: rgb(31, 47, 134);
/* oklch */ color: oklch(35.4% 0.146 269.2);
Tailwind
colors: {
  custom: {
    50: '#6c67aa',
    500: '#1f2f86',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f86;
$custom-light: #6c67aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f86",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 230.68,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35354,
    "c": 0.14596,
    "h": 269.2
  },
  "luminance": 0.04046
}

Semantic roles & 50–950 ramp

primary
#1F2F86
secondary
#B8A749
accent
#CC42E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2F86

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

Preview Lab → · Contrast checker → · Palette generator →

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