#1F4291#1F4291

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

Color values

HEX#1F4291
RGBrgb(31, 66, 145)
HSLhsl(222, 65%, 35%)
HSVhsv(222, 79%, 57%)
CMYKcmyk(78.6%, 54.5%, 0%, 43.1%)
CIE-LABlab(29.99, 17.39, -47.26)
CIE-LCHlch(29.99, 50.36, 290.20°)
OKLaboklab(40.26% -0.0156 -0.1362)
OKLCHoklch(40.26% 0.137 263.5)
XYZxyz(7.6223, 6.2312, 27.5836)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4291 #916E1F
analogous
#1F7B91 #1F4291 #351F91
triadic
#1F4291 #911F42 #42911F
tetradic
#1F4291 #911F7B #916E1F #1F9135
square
#1F4291 #911F7B #916E1F #1F9135
split-complementary
#1F4291 #91351F #7B911F
monochromatic
#09142C #142B5F #1F4291 #2A59C3 #517BDA

Accessibility & contrast

On white

9.35
#1F4291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F4291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4291
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4291#FFFFFF#000000##FFFFFF
##1F42911.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054C94
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#005563
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4291;
/* rgb */ color: rgb(31, 66, 145);
/* oklch */ color: oklch(40.3% 0.137 263.5);
Tailwind
colors: {
  custom: {
    50: '#6d75b2',
    500: '#1f4291',
    950: '#000000',
  },
}
SCSS
$custom: #1f4291;
$custom-light: #6d75b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4291",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 145
  },
  "hsl": {
    "h": 221.579,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40257,
    "c": 0.13706,
    "h": 263.5
  },
  "luminance": 0.06232
}

Semantic roles & 50–950 ramp

primary
#1F4291
secondary
#BD9B4F
accent
#B440E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4291

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

Preview Lab → · Contrast checker → · Palette generator →

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