#1F4296#1F4296

#1F4296 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.7% C 0.144 H 264.0°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#1F4296
RGBrgb(31, 66, 150)
HSLhsl(222, 66%, 35%)
HSVhsv(222, 79%, 59%)
CMYKcmyk(79.3%, 56%, 0%, 41.2%)
CIE-LABlab(30.37, 19.39, -49.69)
CIE-LCHlch(30.37, 53.34, 291.31°)
OKLaboklab(40.67% -0.0151 -0.1433)
OKLCHoklch(40.67% 0.144 264)
XYZxyz(8.0164, 6.3888, 29.6589)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4296 #96731F
analogous
#1F7D96 #1F4296 #371F96
triadic
#1F4296 #961F42 #42961F
tetradic
#1F4296 #961F7D #96731F #1F9637
square
#1F4296 #961F7D #96731F #1F9637
split-complementary
#1F4296 #96371F #7D961F
monochromatic
#0A1531 #152C63 #1F4296 #2958C9 #547CDC

Accessibility & contrast

On white

9.22
#1F4296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F4296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4296
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4296#FFFFFF#000000##FFFFFF
##1F42961.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D99
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#005765
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4296;
/* rgb */ color: rgb(31, 66, 150);
/* oklch */ color: oklch(40.7% 0.144 264.0);
Tailwind
colors: {
  custom: {
    50: '#6e75b6',
    500: '#1f4296',
    950: '#000000',
  },
}
SCSS
$custom: #1f4296;
$custom-light: #6e75b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4296",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 150
  },
  "hsl": {
    "h": 222.353,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40669,
    "c": 0.14413,
    "h": 264
  },
  "luminance": 0.0639
}

Semantic roles & 50–950 ramp

primary
#1F4296
secondary
#BF9F52
accent
#B73FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4296

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

Preview Lab → · Contrast checker → · Palette generator →

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