#1F4196#1F4196

#1F4196 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.145 H 264.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#1F4196
RGBrgb(31, 65, 150)
HSLhsl(223, 66%, 35%)
HSVhsv(223, 79%, 59%)
CMYKcmyk(79.3%, 56.7%, 0%, 41.2%)
CIE-LABlab(30.09, 20.07, -50.15)
CIE-LCHlch(30.09, 54.02, 291.81°)
OKLaboklab(40.46% -0.0144 -0.1447)
OKLCHoklch(40.46% 0.145 264.3)
XYZxyz(7.9584, 6.2730, 29.6396)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4196 #96741F
analogous
#1F7C96 #1F4196 #381F96
triadic
#1F4196 #961F41 #41961F
tetradic
#1F4196 #961F7C #96741F #1F9638
square
#1F4196 #961F7C #96741F #1F9638
split-complementary
#1F4196 #96381F #7C961F
monochromatic
#0A1531 #152B63 #1F4196 #2957C9 #547BDC

Accessibility & contrast

On white

9.31
#1F4196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F4196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4196
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4196#FFFFFF#000000##FFFFFF
##1F41961.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4196;
/* rgb */ color: rgb(31, 65, 150);
/* oklch */ color: oklch(40.5% 0.145 264.3);
Tailwind
colors: {
  custom: {
    50: '#6e75b6',
    500: '#1f4196',
    950: '#000000',
  },
}
SCSS
$custom: #1f4196;
$custom-light: #6e75b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4196",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 150
  },
  "hsl": {
    "h": 222.857,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40457,
    "c": 0.14541,
    "h": 264.3
  },
  "luminance": 0.06274
}

Semantic roles & 50–950 ramp

primary
#1F4196
secondary
#BFA052
accent
#B83FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4196

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

Preview Lab → · Contrast checker → · Palette generator →

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