#1F4397#1F4397

#1F4397 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.144 H 263.7°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#1F4397
RGBrgb(31, 67, 151)
HSLhsl(222, 66%, 36%)
HSVhsv(222, 79%, 59%)
CMYKcmyk(79.5%, 55.6%, 0%, 40.8%)
CIE-LABlab(30.73, 19.10, -49.72)
CIE-LCHlch(30.73, 53.26, 291.02°)
OKLaboklab(40.97% -0.0158 -0.1434)
OKLCHoklch(40.97% 0.144 263.7)
XYZxyz(8.1562, 6.5390, 30.1045)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4397 #97731F
analogous
#1F7F97 #1F4397 #371F97
triadic
#1F4397 #971F43 #43971F
tetradic
#1F4397 #971F7F #97731F #1F9737
square
#1F4397 #971F7F #97731F #1F9737
split-complementary
#1F4397 #97371F #7F971F
monochromatic
#0A1631 #152C64 #1F4397 #295ACA #547DDC

Accessibility & contrast

On white

9.10
#1F4397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4397
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4397#FFFFFF#000000##FFFFFF
##1F43971.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005866
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4397;
/* rgb */ color: rgb(31, 67, 151);
/* oklch */ color: oklch(41.0% 0.144 263.7);
Tailwind
colors: {
  custom: {
    50: '#6e76b6',
    500: '#1f4397',
    950: '#000000',
  },
}
SCSS
$custom: #1f4397;
$custom-light: #6e76b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4397",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 222,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40967,
    "c": 0.14425,
    "h": 263.7
  },
  "luminance": 0.0654
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4397

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

Preview Lab → · Contrast checker → · Palette generator →

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