#1F2996#1F2996

#1F2996 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.174 H 270.0°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#1F2996
RGBrgb(31, 41, 150)
HSLhsl(235, 66%, 35%)
HSVhsv(235, 79%, 59%)
CMYKcmyk(79.3%, 72.7%, 0%, 41.2%)
CIE-LABlab(23.93, 36.08, -60.24)
CIE-LCHlch(23.93, 70.22, 300.92°)
OKLaboklab(35.91% 0.0001 -0.1744)
OKLCHoklch(35.91% 0.174 270)
XYZxyz(6.8612, 4.0784, 29.2739)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2996 #968C1F
analogous
#1F6496 #1F2996 #501F96
triadic
#1F2996 #961F29 #29961F
tetradic
#1F2996 #961F64 #968C1F #1F9650
square
#1F2996 #961F64 #968C1F #1F9650
split-complementary
#1F2996 #96501F #64961F
monochromatic
#0A0D31 #151B63 #1F2996 #2937C9 #545FDC

Accessibility & contrast

On white

11.57
#1F2996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F2996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2996
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2996#FFFFFF#000000##FFFFFF
##1F29961.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2996;
/* rgb */ color: rgb(31, 41, 150);
/* oklch */ color: oklch(35.9% 0.174 270.0);
Tailwind
colors: {
  custom: {
    50: '#7063b6',
    500: '#1f2996',
    950: '#000000',
  },
}
SCSS
$custom: #1f2996;
$custom-light: #7063b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2996",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 234.958,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35911,
    "c": 0.17445,
    "h": 270
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#1F2996
secondary
#BFB652
accent
#DA3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1F2996

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

Preview Lab → · Contrast checker → · Palette generator →

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