#1F2A96#1F2A96

#1F2A96 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.173 H 269.9°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#1F2A96
RGBrgb(31, 42, 150)
HSLhsl(234, 66%, 35%)
HSVhsv(234, 79%, 59%)
CMYKcmyk(79.3%, 72%, 0%, 41.2%)
CIE-LABlab(24.16, 35.45, -59.87)
CIE-LCHlch(24.16, 69.58, 300.64°)
OKLaboklab(36.08% -0.0004 -0.1734)
OKLCHoklch(36.08% 0.173 269.9)
XYZxyz(6.8962, 4.1485, 29.2855)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A96 #968B1F
analogous
#1F6596 #1F2A96 #4F1F96
triadic
#1F2A96 #961F2A #2A961F
tetradic
#1F2A96 #961F65 #968B1F #1F964F
square
#1F2A96 #961F65 #968B1F #1F964F
split-complementary
#1F2A96 #964F1F #65961F
monochromatic
#0A0E31 #151C63 #1F2A96 #2938C9 #5460DC

Accessibility & contrast

On white

11.48
#1F2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A96
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A96#FFFFFF#000000##FFFFFF
##1F2A961.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2a96;
/* rgb */ color: rgb(31, 42, 150);
/* oklch */ color: oklch(36.1% 0.173 269.9);
Tailwind
colors: {
  custom: {
    50: '#7064b6',
    500: '#1f2a96',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a96;
$custom-light: #7064b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a96",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 234.454,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36075,
    "c": 0.17336,
    "h": 269.9
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#1F2A96
secondary
#BFB552
accent
#D93FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1F2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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