#1F4193#1F4193

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

Color values

HEX#1F4193
RGBrgb(31, 65, 147)
HSLhsl(222, 65%, 35%)
HSVhsv(222, 79%, 58%)
CMYKcmyk(78.9%, 55.8%, 0%, 42.4%)
CIE-LABlab(29.86, 18.88, -48.70)
CIE-LCHlch(29.86, 52.23, 291.19°)
OKLaboklab(40.21% -0.0146 -0.1404)
OKLCHoklch(40.21% 0.141 264.1)
XYZxyz(7.7200, 6.1776, 28.3836)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4193 #93711F
analogous
#1F7B93 #1F4193 #371F93
triadic
#1F4193 #931F41 #41931F
tetradic
#1F4193 #931F7B #93711F #1F9337
square
#1F4193 #931F7B #93711F #1F9337
split-complementary
#1F4193 #93371F #7B931F
monochromatic
#0A142E #142B60 #1F4193 #2A57C6 #527ADA

Accessibility & contrast

On white

9.39
#1F4193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4193
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4193#FFFFFF#000000##FFFFFF
##1F41931.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4193;
/* rgb */ color: rgb(31, 65, 147);
/* oklch */ color: oklch(40.2% 0.141 264.1);
Tailwind
colors: {
  custom: {
    50: '#6e75b3',
    500: '#1f4193',
    950: '#000000',
  },
}
SCSS
$custom: #1f4193;
$custom-light: #6e75b3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4193",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 147
  },
  "hsl": {
    "h": 222.414,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40205,
    "c": 0.14118,
    "h": 264.1
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

primary
#1F4193
secondary
#BE9E50
accent
#B740E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4193

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

Preview Lab → · Contrast checker → · Palette generator →

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