#1F2C81#1F2C81

#1F2C81 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.143 H 270.1°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#1F2C81
RGBrgb(31, 44, 129)
HSLhsl(232, 61%, 31%)
HSVhsv(232, 76%, 51%)
CMYKcmyk(76%, 65.9%, 0%, 49.4%)
CIE-LABlab(22.57, 26.27, -49.39)
CIE-LCHlch(22.57, 55.94, 298.00°)
OKLaboklab(34.29% 0.0003 -0.1428)
OKLCHoklch(34.29% 0.143 270.1)
XYZxyz(5.4268, 3.6771, 21.1884)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C81 #81741F
analogous
#1F5D81 #1F2C81 #431F81
triadic
#1F2C81 #811F2C #2C811F
tetradic
#1F2C81 #811F5D #81741F #1F8143
square
#1F2C81 #811F5D #81741F #1F8143
split-complementary
#1F2C81 #81431F #5D811F
monochromatic
#070A1E #131B50 #1F2C81 #2B3DB2 #475AD3

Accessibility & contrast

On white

12.10
#1F2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C81
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C81#FFFFFF#000000##FFFFFF
##1F2C811.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2c81;
/* rgb */ color: rgb(31, 44, 129);
/* oklch */ color: oklch(34.3% 0.143 270.1);
Tailwind
colors: {
  custom: {
    50: '#6b65a6',
    500: '#1f2c81',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c81;
$custom-light: #6b65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c81",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 232.041,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34295,
    "c": 0.14276,
    "h": 270.1
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#1F2C81
secondary
#B4A648
accent
#CF43E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #1F2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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