#1F2496#1F2496

#1F2496 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.180 H 270.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#1F2496
RGBrgb(31, 36, 150)
HSLhsl(237, 66%, 35%)
HSVhsv(237, 79%, 59%)
CMYKcmyk(79.3%, 76%, 0%, 41.2%)
CIE-LABlab(22.84, 39.11, -62.03)
CIE-LCHlch(22.84, 73.34, 302.23°)
OKLaboklab(35.14% 0.0022 -0.1796)
OKLCHoklch(35.14% 0.18 270.7)
XYZxyz(6.6991, 3.7543, 29.2198)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2496 #96911F
analogous
#1F5F96 #1F2496 #551F96
triadic
#1F2496 #961F24 #24961F
tetradic
#1F2496 #961F5F #96911F #1F9655
square
#1F2496 #961F5F #96911F #1F9655
split-complementary
#1F2496 #96551F #5F961F
monochromatic
#0A0C31 #151863 #1F2496 #2930C9 #5459DC

Accessibility & contrast

On white

11.99
#1F2496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2496
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2496#FFFFFF#000000##FFFFFF
##1F24961.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2496;
/* rgb */ color: rgb(31, 36, 150);
/* oklch */ color: oklch(35.1% 0.180 270.7);
Tailwind
colors: {
  custom: {
    50: '#7160b6',
    500: '#1f2496',
    950: '#000000',
  },
}
SCSS
$custom: #1f2496;
$custom-light: #7160b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2496",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 237.479,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35135,
    "c": 0.17966,
    "h": 270.7
  },
  "luminance": 0.03755
}

Semantic roles & 50–950 ramp

primary
#1F2496
secondary
#BFBA52
accent
#E23FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2496

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

Preview Lab → · Contrast checker → · Palette generator →

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