#1F4394#1F4394

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

Color values

HEX#1F4394
RGBrgb(31, 67, 148)
HSLhsl(222, 65%, 35%)
HSVhsv(222, 79%, 58%)
CMYKcmyk(79.1%, 54.7%, 0%, 42%)
CIE-LABlab(30.50, 17.90, -48.26)
CIE-LCHlch(30.50, 51.48, 290.35°)
OKLaboklab(40.72% -0.0161 -0.1391)
OKLCHoklch(40.72% 0.14 263.4)
XYZxyz(7.9156, 6.4428, 28.8376)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4394 #94701F
analogous
#1F7E94 #1F4394 #351F94
triadic
#1F4394 #941F43 #43941F
tetradic
#1F4394 #941F7E #94701F #1F9435
square
#1F4394 #941F7E #94701F #1F9435
split-complementary
#1F4394 #94351F #7E941F
monochromatic
#0A152F #142C61 #1F4394 #2A5AC7 #537CDB

Accessibility & contrast

On white

9.18
#1F4394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1F4394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4394
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4394#FFFFFF#000000##FFFFFF
##1F43941.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024D97
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#005765
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4394;
/* rgb */ color: rgb(31, 67, 148);
/* oklch */ color: oklch(40.7% 0.140 263.4);
Tailwind
colors: {
  custom: {
    50: '#6e76b4',
    500: '#1f4394',
    950: '#000000',
  },
}
SCSS
$custom: #1f4394;
$custom-light: #6e76b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4394",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 148
  },
  "hsl": {
    "h": 221.538,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40719,
    "c": 0.14002,
    "h": 263.4
  },
  "luminance": 0.06444
}

Semantic roles & 50–950 ramp

primary
#1F4394
secondary
#BE9C51
accent
#B43FE8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4394

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

Preview Lab → · Contrast checker → · Palette generator →

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