#1F2974#1F2974

#1F2974 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.128 H 271.4°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#1F2974
RGBrgb(31, 41, 116)
HSLhsl(233, 58%, 29%)
HSVhsv(233, 73%, 45%)
CMYKcmyk(73.3%, 64.7%, 0%, 54.5%)
CIE-LABlab(20.59, 23.30, -44.38)
CIE-LCHlch(20.59, 50.12, 297.71°)
OKLaboklab(32.46% 0.0031 -0.1281)
OKLCHoklch(32.46% 0.128 271.4)
XYZxyz(4.5093, 3.1377, 16.8876)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2974 #746A1F
analogous
#1F5474 #1F2974 #401F74
triadic
#1F2974 #741F29 #29741F
tetradic
#1F2974 #741F54 #746A1F #1F7440
square
#1F2974 #741F54 #746A1F #1F7440
split-complementary
#1F2974 #74401F #54741F
monochromatic
#060918 #121844 #1F2974 #2C3AA4 #4152CC

Accessibility & contrast

On white

12.90
#1F2974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2974
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2974#FFFFFF#000000##FFFFFF
##1F29741.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2974;
/* rgb */ color: rgb(31, 41, 116);
/* oklch */ color: oklch(32.5% 0.128 271.4);
Tailwind
colors: {
  custom: {
    50: '#68629d',
    500: '#1f2974',
    950: '#000000',
  },
}
SCSS
$custom: #1f2974;
$custom-light: #68629d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2974",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 116
  },
  "hsl": {
    "h": 232.941,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32463,
    "c": 0.12812,
    "h": 271.4
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

primary
#1F2974
secondary
#A89C47
accent
#CF47E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2974

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

Preview Lab → · Contrast checker → · Palette generator →

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