#1F4592#1F4592

#1F4592 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.0% C 0.135 H 262.4°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#1F4592
RGBrgb(31, 69, 146)
HSLhsl(220, 65%, 35%)
HSVhsv(220, 79%, 57%)
CMYKcmyk(78.8%, 52.7%, 0%, 42.7%)
CIE-LABlab(30.93, 15.73, -46.35)
CIE-LCHlch(30.93, 48.94, 288.75°)
OKLaboklab(41% -0.0178 -0.1334)
OKLCHoklch(41% 0.135 262.4)
XYZxyz(7.8796, 6.6220, 28.0514)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4592 #926C1F
analogous
#1F7F92 #1F4592 #331F92
triadic
#1F4592 #921F45 #45921F
tetradic
#1F4592 #921F7F #926C1F #1F9233
square
#1F4592 #921F7F #926C1F #1F9233
split-complementary
#1F4592 #92331F #7F921F
monochromatic
#0A152D #142D60 #1F4592 #2A5DC4 #517EDA

Accessibility & contrast

On white

9.03
#1F4592 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#1F4592 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4592
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4592#FFFFFF#000000##FFFFFF
##1F45921.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124E95
Deuteranopia (green-blind)
#004490
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4592;
/* rgb */ color: rgb(31, 69, 146);
/* oklch */ color: oklch(41.0% 0.135 262.4);
Tailwind
colors: {
  custom: {
    50: '#6d78b3',
    500: '#1f4592',
    950: '#000000',
  },
}
SCSS
$custom: #1f4592;
$custom-light: #6d78b3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4592",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 146
  },
  "hsl": {
    "h": 220.174,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40996,
    "c": 0.13462,
    "h": 262.4
  },
  "luminance": 0.06623
}

Semantic roles & 50–950 ramp

primary
#1F4592
secondary
#BD9950
accent
#B040E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4592

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

Preview Lab → · Contrast checker → · Palette generator →

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