#1F4297#1F4297

#1F4297 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.146 H 264.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#1F4297
RGBrgb(31, 66, 151)
HSLhsl(223, 66%, 36%)
HSVhsv(223, 79%, 59%)
CMYKcmyk(79.5%, 56.3%, 0%, 40.8%)
CIE-LABlab(30.45, 19.79, -50.18)
CIE-LCHlch(30.45, 53.94, 291.52°)
OKLaboklab(40.75% -0.015 -0.1447)
OKLCHoklch(40.75% 0.146 264.1)
XYZxyz(8.0972, 6.4212, 30.0848)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4297 #97741F
analogous
#1F7E97 #1F4297 #381F97
triadic
#1F4297 #971F42 #42971F
tetradic
#1F4297 #971F7E #97741F #1F9738
square
#1F4297 #971F7E #97741F #1F9738
split-complementary
#1F4297 #97381F #7E971F
monochromatic
#0A1631 #152C64 #1F4297 #2958CA #547CDC

Accessibility & contrast

On white

9.19
#1F4297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F4297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4297
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4297#FFFFFF#000000##FFFFFF
##1F42971.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4297;
/* rgb */ color: rgb(31, 66, 151);
/* oklch */ color: oklch(40.8% 0.146 264.1);
Tailwind
colors: {
  custom: {
    50: '#6e75b6',
    500: '#1f4297',
    950: '#000000',
  },
}
SCSS
$custom: #1f4297;
$custom-light: #6e75b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4297",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 151
  },
  "hsl": {
    "h": 222.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40753,
    "c": 0.14553,
    "h": 264.1
  },
  "luminance": 0.06422
}

Semantic roles & 50–950 ramp

primary
#1F4297
secondary
#BFA052
accent
#B73FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4297

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

Preview Lab → · Contrast checker → · Palette generator →

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