#1F4398#1F4398

#1F4398 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.0% C 0.146 H 263.8°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#1F4398
RGBrgb(31, 67, 152)
HSLhsl(222, 66%, 36%)
HSVhsv(222, 80%, 60%)
CMYKcmyk(79.6%, 55.9%, 0%, 40.4%)
CIE-LABlab(30.81, 19.50, -50.20)
CIE-LCHlch(30.81, 53.85, 291.23°)
OKLaboklab(41.05% -0.0157 -0.1448)
OKLCHoklch(41.05% 0.146 263.8)
XYZxyz(8.2377, 6.5717, 30.5340)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4398 #98741F
analogous
#1F7F98 #1F4398 #381F98
triadic
#1F4398 #981F43 #43981F
tetradic
#1F4398 #981F7F #98741F #1F9838
square
#1F4398 #981F7F #98741F #1F9838
split-complementary
#1F4398 #98381F #7F981F
monochromatic
#0A1632 #152D65 #1F4398 #2959CB #557DDC

Accessibility & contrast

On white

9.07
#1F4398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1F4398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4398
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4398#FFFFFF#000000##FFFFFF
##1F43981.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4398;
/* rgb */ color: rgb(31, 67, 152);
/* oklch */ color: oklch(41.0% 0.146 263.8);
Tailwind
colors: {
  custom: {
    50: '#6f76b7',
    500: '#1f4398',
    950: '#000000',
  },
}
SCSS
$custom: #1f4398;
$custom-light: #6f76b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4398",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 152
  },
  "hsl": {
    "h": 222.149,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4105,
    "c": 0.14565,
    "h": 263.8
  },
  "luminance": 0.06573
}

Semantic roles & 50–950 ramp

primary
#1F4398
secondary
#C09F53
accent
#B63FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4398

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

Preview Lab → · Contrast checker → · Palette generator →

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