#1F2196#1F2196

#1F2196 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.183 H 271.1°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#1F2196
RGBrgb(31, 33, 150)
HSLhsl(239, 66%, 35%)
HSVhsv(239, 79%, 59%)
CMYKcmyk(79.3%, 78%, 0%, 41.2%)
CIE-LABlab(22.23, 40.84, -63.04)
CIE-LCHlch(22.23, 75.12, 302.94°)
OKLaboklab(34.7% 0.0034 -0.1825)
OKLCHoklch(34.7% 0.183 271.1)
XYZxyz(6.6121, 3.5803, 29.1908)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2196 #96941F
analogous
#1F5C96 #1F2196 #591F96
triadic
#1F2196 #961F21 #21961F
tetradic
#1F2196 #961F5C #96941F #1F9659
square
#1F2196 #961F5C #96941F #1F9659
split-complementary
#1F2196 #96591F #5C961F
monochromatic
#0A0B31 #151663 #1F2196 #292CC9 #5456DC

Accessibility & contrast

On white

12.24
#1F2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2196
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2196#FFFFFF#000000##FFFFFF
##1F21961.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2196;
/* rgb */ color: rgb(31, 33, 150);
/* oklch */ color: oklch(34.7% 0.183 271.1);
Tailwind
colors: {
  custom: {
    50: '#715eb6',
    500: '#1f2196',
    950: '#000000',
  },
}
SCSS
$custom: #1f2196;
$custom-light: #715eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2196",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 238.992,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34703,
    "c": 0.18257,
    "h": 271.1
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#1F2196
secondary
#BFBD52
accent
#E63FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2196

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

Preview Lab → · Contrast checker → · Palette generator →

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