#1F4094#1F4094

#1F4094 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.144 H 264.5°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#1F4094
RGBrgb(31, 64, 148)
HSLhsl(223, 65%, 35%)
HSVhsv(223, 79%, 58%)
CMYKcmyk(79.1%, 56.8%, 0%, 42%)
CIE-LABlab(29.65, 19.97, -49.64)
CIE-LCHlch(29.65, 53.51, 291.91°)
OKLaboklab(40.08% -0.0138 -0.1432)
OKLCHoklch(40.08% 0.144 264.5)
XYZxyz(7.7419, 6.0953, 28.7797)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4094 #94731F
analogous
#1F7A94 #1F4094 #391F94
triadic
#1F4094 #941F40 #40941F
tetradic
#1F4094 #941F7A #94731F #1F9439
square
#1F4094 #941F7A #94731F #1F9439
split-complementary
#1F4094 #94391F #7A941F
monochromatic
#0A142F #142A61 #1F4094 #2A56C7 #5379DB

Accessibility & contrast

On white

9.46
#1F4094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F4094 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4094
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4094#FFFFFF#000000##FFFFFF
##1F40941.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4094;
/* rgb */ color: rgb(31, 64, 148);
/* oklch */ color: oklch(40.1% 0.144 264.5);
Tailwind
colors: {
  custom: {
    50: '#6e74b4',
    500: '#1f4094',
    950: '#000000',
  },
}
SCSS
$custom: #1f4094;
$custom-light: #6e74b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4094",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 148
  },
  "hsl": {
    "h": 223.077,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40076,
    "c": 0.14388,
    "h": 264.5
  },
  "luminance": 0.06096
}

Semantic roles & 50–950 ramp

primary
#1F4094
secondary
#BE9F51
accent
#B93FE8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4094

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

Preview Lab → · Contrast checker → · Palette generator →

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