#1F4194#1F4194

#1F4194 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.143 H 264.1°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#1F4194
RGBrgb(31, 65, 148)
HSLhsl(223, 65%, 35%)
HSVhsv(223, 79%, 58%)
CMYKcmyk(79.1%, 56.1%, 0%, 42%)
CIE-LABlab(29.93, 19.28, -49.18)
CIE-LCHlch(29.93, 52.83, 291.40°)
OKLaboklab(40.29% -0.0145 -0.1418)
OKLCHoklch(40.29% 0.143 264.1)
XYZxyz(7.7988, 6.2091, 28.7987)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4194 #94721F
analogous
#1F7B94 #1F4194 #371F94
triadic
#1F4194 #941F41 #41941F
tetradic
#1F4194 #941F7B #94721F #1F9437
square
#1F4194 #941F7B #94721F #1F9437
split-complementary
#1F4194 #94371F #7B941F
monochromatic
#0A152F #142B61 #1F4194 #2A57C7 #537ADB

Accessibility & contrast

On white

9.37
#1F4194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1F4194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4194
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4194#FFFFFF#000000##FFFFFF
##1F41941.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4194;
/* rgb */ color: rgb(31, 65, 148);
/* oklch */ color: oklch(40.3% 0.143 264.1);
Tailwind
colors: {
  custom: {
    50: '#6e75b4',
    500: '#1f4194',
    950: '#000000',
  },
}
SCSS
$custom: #1f4194;
$custom-light: #6e75b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4194",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 148
  },
  "hsl": {
    "h": 222.564,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40289,
    "c": 0.14259,
    "h": 264.1
  },
  "luminance": 0.0621
}

Semantic roles & 50–950 ramp

primary
#1F4194
secondary
#BE9E51
accent
#B73FE8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4194

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

Preview Lab → · Contrast checker → · Palette generator →

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