#1F2A73#1F2A73

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

Color values

HEX#1F2A73
RGBrgb(31, 42, 115)
HSLhsl(232, 58%, 29%)
HSVhsv(232, 73%, 45%)
CMYKcmyk(73%, 63.5%, 0%, 54.9%)
CIE-LABlab(20.77, 22.22, -43.44)
CIE-LCHlch(20.77, 48.79, 297.09°)
OKLaboklab(32.57% 0.0023 -0.1253)
OKLCHoklch(32.57% 0.125 271.1)
XYZxyz(4.4865, 3.1846, 16.5946)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A73 #73681F
analogous
#1F5473 #1F2A73 #3E1F73
triadic
#1F2A73 #731F2A #2A731F
tetradic
#1F2A73 #731F54 #73681F #1F733E
square
#1F2A73 #731F54 #73681F #1F733E
split-complementary
#1F2A73 #733E1F #54731F
monochromatic
#060918 #121843 #1F2A73 #2C3CA3 #4153CC

Accessibility & contrast

On white

12.83
#1F2A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2A73
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A73#FFFFFF#000000##FFFFFF
##1F2A731.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2a73;
/* rgb */ color: rgb(31, 42, 115);
/* oklch */ color: oklch(32.6% 0.125 271.1);
Tailwind
colors: {
  custom: {
    50: '#67639c',
    500: '#1f2a73',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a73;
$custom-light: #67639c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a73",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 115
  },
  "hsl": {
    "h": 232.143,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3257,
    "c": 0.12534,
    "h": 271.1
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2A73

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

Preview Lab → · Contrast checker → · Palette generator →

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