#1F4076#1F4076

#1F4076 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.7% C 0.100 H 259.8°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#1F4076
RGBrgb(31, 64, 118)
HSLhsl(217, 58%, 29%)
HSVhsv(217, 74%, 46%)
CMYKcmyk(73.7%, 45.8%, 0%, 53.7%)
CIE-LABlab(27.48, 7.93, -34.51)
CIE-LCHlch(27.48, 35.41, 282.94°)
OKLaboklab(37.72% -0.0178 -0.0987)
OKLCHoklch(37.72% 0.1 259.8)
XYZxyz(5.6673, 5.2655, 17.8537)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4076 #76551F
analogous
#1F6C76 #1F4076 #2A1F76
triadic
#1F4076 #761F40 #40761F
tetradic
#1F4076 #761F6C #76551F #1F762A
square
#1F4076 #761F6C #76551F #1F762A
split-complementary
#1F4076 #762A1F #6C761F
monochromatic
#060D18 #122646 #1F4076 #2C5AA6 #4277CD

Accessibility & contrast

On white

10.23
#1F4076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1F4076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4076
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4076#FFFFFF#000000##FFFFFF
##1F40761.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254578
Deuteranopia (green-blind)
#163D75
Tritanopia (blue-blind)
#004D55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f4076;
/* rgb */ color: rgb(31, 64, 118);
/* oklch */ color: oklch(37.7% 0.100 259.8);
Tailwind
colors: {
  custom: {
    50: '#67749e',
    500: '#1f4076',
    950: '#000000',
  },
}
SCSS
$custom: #1f4076;
$custom-light: #67749e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4076",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 118
  },
  "hsl": {
    "h": 217.241,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37725,
    "c": 0.10029,
    "h": 259.8
  },
  "luminance": 0.05266
}

Semantic roles & 50–950 ramp

primary
#1F4076
secondary
#AA8447
accent
#A746E2
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #1F4076

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

Preview Lab → · Contrast checker → · Palette generator →

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