#1F4276#1F4276

#1F4276 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.2% C 0.098 H 258.3°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#1F4276
RGBrgb(31, 66, 118)
HSLhsl(216, 58%, 29%)
HSVhsv(216, 74%, 46%)
CMYKcmyk(73.7%, 44.1%, 0%, 53.7%)
CIE-LABlab(28.10, 6.56, -33.51)
CIE-LCHlch(28.10, 34.14, 281.07°)
OKLaboklab(38.21% -0.0199 -0.0957)
OKLCHoklch(38.21% 0.098 258.3)
XYZxyz(5.7821, 5.4951, 17.8920)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4276 #76531F
analogous
#1F6E76 #1F4276 #281F76
triadic
#1F4276 #761F42 #42761F
tetradic
#1F4276 #761F6E #76531F #1F7628
square
#1F4276 #761F6E #76531F #1F7628
split-complementary
#1F4276 #76281F #6E761F
monochromatic
#060E18 #122746 #1F4276 #2C5DA6 #427ACD

Accessibility & contrast

On white

10.00
#1F4276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#1F4276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4276
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4276#FFFFFF#000000##FFFFFF
##1F42761.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294778
Deuteranopia (green-blind)
#1A3F75
Tritanopia (blue-blind)
#004E56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f4276;
/* rgb */ color: rgb(31, 66, 118);
/* oklch */ color: oklch(38.2% 0.098 258.3);
Tailwind
colors: {
  custom: {
    50: '#67759e',
    500: '#1f4276',
    950: '#000000',
  },
}
SCSS
$custom: #1f4276;
$custom-light: #67759e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4276",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 118
  },
  "hsl": {
    "h": 215.862,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38207,
    "c": 0.09777,
    "h": 258.3
  },
  "luminance": 0.05496
}

Semantic roles & 50–950 ramp

primary
#1F4276
secondary
#AA8247
accent
#A346E2
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #1F4276

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

Preview Lab → · Contrast checker → · Palette generator →

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