#1F3276#1F3276

#1F3276 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.5% C 0.119 H 267.8°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#1F3276
RGBrgb(31, 50, 118)
HSLhsl(227, 58%, 29%)
HSVhsv(227, 74%, 46%)
CMYKcmyk(73.7%, 57.6%, 0%, 53.7%)
CIE-LABlab(23.27, 17.76, -41.29)
CIE-LCHlch(23.27, 44.94, 293.28°)
OKLaboklab(34.52% -0.0045 -0.1189)
OKLCHoklch(34.52% 0.119 267.8)
XYZxyz(4.9746, 3.8800, 17.6228)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3276 #76631F
analogous
#1F5E76 #1F3276 #381F76
triadic
#1F3276 #761F32 #32761F
tetradic
#1F3276 #761F5E #76631F #1F7638
square
#1F3276 #761F5E #76631F #1F7638
split-complementary
#1F3276 #76381F #5E761F
monochromatic
#060A18 #121D46 #1F3276 #2C47A6 #4260CD

Accessibility & contrast

On white

11.82
#1F3276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F3276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3276
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3276#FFFFFF#000000##FFFFFF
##1F32761.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C78
Deuteranopia (green-blind)
#003475
Tritanopia (blue-blind)
#00434E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f3276;
/* rgb */ color: rgb(31, 50, 118);
/* oklch */ color: oklch(34.5% 0.119 267.8);
Tailwind
colors: {
  custom: {
    50: '#67699e',
    500: '#1f3276',
    950: '#000000',
  },
}
SCSS
$custom: #1f3276;
$custom-light: #67699e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3276",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 118
  },
  "hsl": {
    "h": 226.897,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34516,
    "c": 0.11896,
    "h": 267.8
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#1F3276
secondary
#AA9447
accent
#C046E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F3276

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

Preview Lab → · Contrast checker → · Palette generator →

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