#1F2B96#1F2B96

#1F2B96 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.172 H 269.7°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#1F2B96
RGBrgb(31, 43, 150)
HSLhsl(234, 66%, 35%)
HSVhsv(234, 79%, 59%)
CMYKcmyk(79.3%, 71.3%, 0%, 41.2%)
CIE-LABlab(24.39, 34.82, -59.49)
CIE-LCHlch(24.39, 68.93, 300.34°)
OKLaboklab(36.24% -0.0008 -0.1723)
OKLCHoklch(36.24% 0.172 269.7)
XYZxyz(6.9321, 4.2203, 29.2975)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B96 #968A1F
analogous
#1F6696 #1F2B96 #4F1F96
triadic
#1F2B96 #961F2B #2B961F
tetradic
#1F2B96 #961F66 #968A1F #1F964F
square
#1F2B96 #961F66 #968A1F #1F964F
split-complementary
#1F2B96 #964F1F #66961F
monochromatic
#0A0E31 #151C63 #1F2B96 #293AC9 #5461DC

Accessibility & contrast

On white

11.39
#1F2B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F2B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B96
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B96#FFFFFF#000000##FFFFFF
##1F2B961.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f2b96;
/* rgb */ color: rgb(31, 43, 150);
/* oklch */ color: oklch(36.2% 0.172 269.7);
Tailwind
colors: {
  custom: {
    50: '#7065b6',
    500: '#1f2b96',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b96;
$custom-light: #7065b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b96",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 150
  },
  "hsl": {
    "h": 233.95,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36241,
    "c": 0.17226,
    "h": 269.7
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

primary
#1F2B96
secondary
#BFB452
accent
#D83FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1F2B96

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

Preview Lab → · Contrast checker → · Palette generator →

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