#1F2096#1F2096

#1F2096 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.184 H 271.2°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#1F2096
RGBrgb(31, 32, 150)
HSLhsl(239, 66%, 35%)
HSVhsv(239, 79%, 59%)
CMYKcmyk(79.3%, 78.7%, 0%, 41.2%)
CIE-LABlab(22.04, 41.40, -63.37)
CIE-LCHlch(22.04, 75.69, 303.16°)
OKLaboklab(34.57% 0.0037 -0.1835)
OKLCHoklch(34.57% 0.184 271.2)
XYZxyz(6.5847, 3.5256, 29.1817)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2096 #96951F
analogous
#1F5B96 #1F2096 #591F96
triadic
#1F2096 #961F20 #20961F
tetradic
#1F2096 #961F5B #96951F #1F9659
square
#1F2096 #961F5B #96951F #1F9659
split-complementary
#1F2096 #96591F #5B961F
monochromatic
#0A0A31 #151563 #1F2096 #292BC9 #5455DC

Accessibility & contrast

On white

12.32
#1F2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2096
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2096#FFFFFF#000000##FFFFFF
##1F20961.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.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: #1f2096;
/* rgb */ color: rgb(31, 32, 150);
/* oklch */ color: oklch(34.6% 0.184 271.2);
Tailwind
colors: {
  custom: {
    50: '#715eb6',
    500: '#1f2096',
    950: '#000000',
  },
}
SCSS
$custom: #1f2096;
$custom-light: #715eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2096",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 239.496,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34565,
    "c": 0.18351,
    "h": 271.2
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#1F2096
secondary
#BFBE52
accent
#E73FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2096

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

Preview Lab → · Contrast checker → · Palette generator →

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