#1F1886#1F1886

#1F1886 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.171 H 273.4°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#1F1886
RGBrgb(31, 24, 134)
HSLhsl(244, 70%, 31%)
HSVhsv(244, 82%, 53%)
CMYKcmyk(76.9%, 82.1%, 0%, 47.5%)
CIE-LABlab(18.65, 40.38, -59.01)
CIE-LCHlch(18.65, 71.50, 304.38°)
OKLaboklab(31.64% 0.0102 -0.1707)
OKLCHoklch(31.64% 0.171 273.4)
XYZxyz(5.1933, 2.6653, 22.7904)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1886 #7F8618
analogous
#184886 #1F1886 #561886
triadic
#1F1886 #861F18 #18861F
tetradic
#1F1886 #861848 #7F8618 #188656
square
#1F1886 #861848 #7F8618 #188656
split-complementary
#1F1886 #865618 #488618
monochromatic
#07051E #130F52 #1F1886 #2B21BA #463CDC

Accessibility & contrast

On white

13.70
#1F1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1886
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1886#FFFFFF#000000##FFFFFF
##1F18861.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002884
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1886;
/* rgb */ color: rgb(31, 24, 134);
/* oklch */ color: oklch(31.6% 0.171 273.4);
Tailwind
colors: {
  custom: {
    50: '#6e58aa',
    500: '#1f1886',
    950: '#000000',
  },
}
SCSS
$custom: #1f1886;
$custom-light: #6e58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1886",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 243.818,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31642,
    "c": 0.17101,
    "h": 273.4
  },
  "luminance": 0.02666
}

Semantic roles & 50–950 ramp

primary
#1F1886
secondary
#B2BA40
accent
#EC3BE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1886

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

Preview Lab → · Contrast checker → · Palette generator →

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