#1F2286#1F2286

#1F2286 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.161 H 272.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#1F2286
RGBrgb(31, 34, 134)
HSLhsl(238, 62%, 32%)
HSVhsv(238, 77%, 53%)
CMYKcmyk(76.9%, 74.6%, 0%, 47.5%)
CIE-LABlab(20.66, 34.66, -55.69)
CIE-LCHlch(20.66, 65.59, 301.90°)
OKLaboklab(33.06% 0.0058 -0.1612)
OKLCHoklch(33.06% 0.161 272.1)
XYZxyz(5.4387, 3.1560, 22.8722)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2286 #86831F
analogous
#1F5686 #1F2286 #4F1F86
triadic
#1F2286 #861F22 #22861F
tetradic
#1F2286 #861F56 #86831F #1F864F
square
#1F2286 #861F56 #86831F #1F864F
split-complementary
#1F2286 #864F1F #56861F
monochromatic
#080923 #141554 #1F2286 #2A2FB8 #4A4ED5

Accessibility & contrast

On white

12.87
#1F2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2286
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2286#FFFFFF#000000##FFFFFF
##1F22861.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2286;
/* rgb */ color: rgb(31, 34, 134);
/* oklch */ color: oklch(33.1% 0.161 272.1);
Tailwind
colors: {
  custom: {
    50: '#6d5eaa',
    500: '#1f2286',
    950: '#000000',
  },
}
SCSS
$custom: #1f2286;
$custom-light: #6d5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2286",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 238.252,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33059,
    "c": 0.16127,
    "h": 272.1
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#1F2286
secondary
#B8B449
accent
#E142E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2286

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

Preview Lab → · Contrast checker → · Palette generator →

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