#1F2C96#1F2C96

#1F2C96 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.171 H 269.6°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#1F2C96
RGBrgb(31, 44, 150)
HSLhsl(233, 66%, 35%)
HSVhsv(233, 79%, 59%)
CMYKcmyk(79.3%, 70.7%, 0%, 41.2%)
CIE-LABlab(24.62, 34.19, -59.10)
CIE-LCHlch(24.62, 68.28, 300.05°)
OKLaboklab(36.41% -0.0013 -0.1711)
OKLCHoklch(36.41% 0.171 269.6)
XYZxyz(6.9689, 4.2939, 29.3098)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C96 #96891F
analogous
#1F6896 #1F2C96 #4D1F96
triadic
#1F2C96 #961F2C #2C961F
tetradic
#1F2C96 #961F68 #96891F #1F964D
square
#1F2C96 #961F68 #96891F #1F964D
split-complementary
#1F2C96 #964D1F #68961F
monochromatic
#0A0E31 #151D63 #1F2C96 #293BC9 #5463DC

Accessibility & contrast

On white

11.30
#1F2C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F2C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C96
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C96#FFFFFF#000000##FFFFFF
##1F2C961.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2c96;
/* rgb */ color: rgb(31, 44, 150);
/* oklch */ color: oklch(36.4% 0.171 269.6);
Tailwind
colors: {
  custom: {
    50: '#7065b6',
    500: '#1f2c96',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c96;
$custom-light: #7065b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c96",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 233.445,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36409,
    "c": 0.17115,
    "h": 269.6
  },
  "luminance": 0.04295
}

Semantic roles & 50–950 ramp

primary
#1F2C96
secondary
#BFB352
accent
#D63FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F2C96

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

Preview Lab → · Contrast checker → · Palette generator →

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