#1F2A74#1F2A74

#1F2A74 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.127 H 271.0°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#1F2A74
RGBrgb(31, 42, 116)
HSLhsl(232, 58%, 29%)
HSVhsv(232, 73%, 45%)
CMYKcmyk(73.3%, 63.8%, 0%, 54.5%)
CIE-LABlab(20.86, 22.61, -43.93)
CIE-LCHlch(20.86, 49.41, 297.23°)
OKLaboklab(32.66% 0.0023 -0.1268)
OKLCHoklch(32.66% 0.127 271)
XYZxyz(4.5444, 3.2077, 16.8993)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A74 #74691F
analogous
#1F5574 #1F2A74 #3F1F74
triadic
#1F2A74 #741F2A #2A741F
tetradic
#1F2A74 #741F55 #74691F #1F743F
square
#1F2A74 #741F55 #74691F #1F743F
split-complementary
#1F2A74 #743F1F #55741F
monochromatic
#060918 #121944 #1F2A74 #2C3BA4 #4153CC

Accessibility & contrast

On white

12.79
#1F2A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F2A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A74
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A74#FFFFFF#000000##FFFFFF
##1F2A741.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2a74;
/* rgb */ color: rgb(31, 42, 116);
/* oklch */ color: oklch(32.7% 0.127 271.0);
Tailwind
colors: {
  custom: {
    50: '#67639d',
    500: '#1f2a74',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a74;
$custom-light: #67639d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a74",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 232.235,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32663,
    "c": 0.12679,
    "h": 271
  },
  "luminance": 0.03208
}

Semantic roles & 50–950 ramp

primary
#1F2A74
secondary
#A89B47
accent
#CD47E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2A74

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

Preview Lab → · Contrast checker → · Palette generator →

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