#1F2A76#1F2A76

#1F2A76 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.130 H 271.0°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#1F2A76
RGBrgb(31, 42, 118)
HSLhsl(232, 58%, 29%)
HSVhsv(232, 74%, 46%)
CMYKcmyk(73.7%, 64.4%, 0%, 53.7%)
CIE-LABlab(21.04, 23.38, -44.92)
CIE-LCHlch(21.04, 50.64, 297.50°)
OKLaboklab(32.85% 0.0023 -0.1297)
OKLCHoklch(32.85% 0.13 271)
XYZxyz(4.6619, 3.2548, 17.5186)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A76 #766B1F
analogous
#1F5676 #1F2A76 #401F76
triadic
#1F2A76 #761F2A #2A761F
tetradic
#1F2A76 #761F56 #766B1F #1F7640
square
#1F2A76 #761F56 #766B1F #1F7640
split-complementary
#1F2A76 #76401F #56761F
monochromatic
#060918 #121946 #1F2A76 #2C3BA6 #4254CD

Accessibility & contrast

On white

12.72
#1F2A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A76
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A76#FFFFFF#000000##FFFFFF
##1F2A761.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2a76;
/* rgb */ color: rgb(31, 42, 118);
/* oklch */ color: oklch(32.9% 0.130 271.0);
Tailwind
colors: {
  custom: {
    50: '#68639e',
    500: '#1f2a76',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a76;
$custom-light: #68639e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a76",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 232.414,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32851,
    "c": 0.12969,
    "h": 271
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#1F2A76
secondary
#AA9D47
accent
#CE46E2
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2A76

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

Preview Lab → · Contrast checker → · Palette generator →

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