#1F2C76#1F2C76

#1F2C76 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.127 H 270.3°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#1F2C76
RGBrgb(31, 44, 118)
HSLhsl(231, 58%, 29%)
HSVhsv(231, 74%, 46%)
CMYKcmyk(73.7%, 62.7%, 0%, 53.7%)
CIE-LABlab(21.58, 21.99, -44.04)
CIE-LCHlch(21.58, 49.22, 296.54°)
OKLaboklab(33.25% 0.0007 -0.127)
OKLCHoklch(33.25% 0.127 270.3)
XYZxyz(4.7347, 3.4002, 17.5428)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C76 #76691F
analogous
#1F5876 #1F2C76 #3E1F76
triadic
#1F2C76 #761F2C #2C761F
tetradic
#1F2C76 #761F58 #76691F #1F763E
square
#1F2C76 #761F58 #76691F #1F763E
split-complementary
#1F2C76 #763E1F #58761F
monochromatic
#060918 #121A46 #1F2C76 #2C3EA6 #4257CD

Accessibility & contrast

On white

12.50
#1F2C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F2C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C76
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C76#FFFFFF#000000##FFFFFF
##1F2C761.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003878
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2c76;
/* rgb */ color: rgb(31, 44, 118);
/* oklch */ color: oklch(33.3% 0.127 270.3);
Tailwind
colors: {
  custom: {
    50: '#68659e',
    500: '#1f2c76',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c76;
$custom-light: #68659e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c76",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 118
  },
  "hsl": {
    "h": 231.034,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33253,
    "c": 0.12705,
    "h": 270.3
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#1F2C76
secondary
#AA9B47
accent
#CA46E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1F2C76

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

Preview Lab → · Contrast checker → · Palette generator →

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