#1F3296#1F3296

#1F3296 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.164 H 268.4°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#1F3296
RGBrgb(31, 50, 150)
HSLhsl(230, 66%, 35%)
HSVhsv(230, 79%, 59%)
CMYKcmyk(79.3%, 66.7%, 0%, 41.2%)
CIE-LABlab(26.08, 30.27, -56.70)
CIE-LCHlch(26.08, 64.27, 298.09°)
OKLaboklab(37.47% -0.0045 -0.1641)
OKLCHoklch(37.47% 0.164 268.4)
XYZxyz(7.2088, 4.7737, 29.3897)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3296 #96831F
analogous
#1F6D96 #1F3296 #471F96
triadic
#1F3296 #961F32 #32961F
tetradic
#1F3296 #961F6D #96831F #1F9647
square
#1F3296 #961F6D #96831F #1F9647
split-complementary
#1F3296 #96471F #6D961F
monochromatic
#0A1031 #152163 #1F3296 #2943C9 #5469DC

Accessibility & contrast

On white

10.74
#1F3296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F3296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3296
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3296#FFFFFF#000000##FFFFFF
##1F32961.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3296;
/* rgb */ color: rgb(31, 50, 150);
/* oklch */ color: oklch(37.5% 0.164 268.4);
Tailwind
colors: {
  custom: {
    50: '#706ab6',
    500: '#1f3296',
    950: '#000000',
  },
}
SCSS
$custom: #1f3296;
$custom-light: #706ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3296",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 150
  },
  "hsl": {
    "h": 230.42,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37472,
    "c": 0.16416,
    "h": 268.4
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#1F3296
secondary
#BFAE52
accent
#CE3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F3296

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

Preview Lab → · Contrast checker → · Palette generator →

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