#1F2A72#1F2A72

#1F2A72 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.5% C 0.124 H 271.1°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#1F2A72
RGBrgb(31, 42, 114)
HSLhsl(232, 57%, 28%)
HSVhsv(232, 73%, 45%)
CMYKcmyk(72.8%, 63.2%, 0%, 55.3%)
CIE-LABlab(20.68, 21.83, -42.94)
CIE-LCHlch(20.68, 48.17, 296.94°)
OKLaboklab(32.48% 0.0024 -0.1238)
OKLCHoklch(32.48% 0.124 271.1)
XYZxyz(4.4293, 3.1617, 16.2932)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A72 #72671F
analogous
#1F5372 #1F2A72 #3D1F72
triadic
#1F2A72 #721F2A #2A721F
tetradic
#1F2A72 #721F53 #72671F #1F723D
square
#1F2A72 #721F53 #72671F #1F723D
split-complementary
#1F2A72 #723D1F #53721F
monochromatic
#070918 #121842 #1F2A72 #2C3CA2 #4053CB

Accessibility & contrast

On white

12.86
#1F2A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F2A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A72
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A72#FFFFFF#000000##FFFFFF
##1F2A721.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2a72;
/* rgb */ color: rgb(31, 42, 114);
/* oklch */ color: oklch(32.5% 0.124 271.1);
Tailwind
colors: {
  custom: {
    50: '#67639b',
    500: '#1f2a72',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a72;
$custom-light: #67639b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a72",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 232.048,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32477,
    "c": 0.12387,
    "h": 271.1
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#1F2A72
secondary
#A69947
accent
#CC47E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2A72

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

Preview Lab → · Contrast checker → · Palette generator →

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