#1F4399#1F4399

#1F4399 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.1% C 0.147 H 263.9°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#1F4399
RGBrgb(31, 67, 153)
HSLhsl(222, 66%, 36%)
HSVhsv(222, 80%, 60%)
CMYKcmyk(79.7%, 56.2%, 0%, 40%)
CIE-LABlab(30.89, 19.90, -50.68)
CIE-LCHlch(30.89, 54.45, 291.43°)
OKLaboklab(41.13% -0.0156 -0.1462)
OKLCHoklch(41.13% 0.147 263.9)
XYZxyz(8.3200, 6.6046, 30.9671)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4399 #99751F
analogous
#1F8099 #1F4399 #381F99
triadic
#1F4399 #991F43 #43991F
tetradic
#1F4399 #991F80 #99751F #1F9938
square
#1F4399 #991F80 #99751F #1F9938
split-complementary
#1F4399 #99381F #80991F
monochromatic
#0A1633 #152D66 #1F4399 #2959CC #567EDD

Accessibility & contrast

On white

9.05
#1F4399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#1F4399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4399
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4399#FFFFFF#000000##FFFFFF
##1F43991.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4399;
/* rgb */ color: rgb(31, 67, 153);
/* oklch */ color: oklch(41.1% 0.147 263.9);
Tailwind
colors: {
  custom: {
    50: '#6f76b8',
    500: '#1f4399',
    950: '#000000',
  },
}
SCSS
$custom: #1f4399;
$custom-light: #6f76b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4399",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 153
  },
  "hsl": {
    "h": 222.295,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41133,
    "c": 0.14705,
    "h": 263.9
  },
  "luminance": 0.06606
}

Semantic roles & 50–950 ramp

primary
#1F4399
secondary
#C0A054
accent
#B73FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #1F4399

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

Preview Lab → · Contrast checker → · Palette generator →

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