#1F2C80#1F2C80

#1F2C80 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.141 H 270.2°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#1F2C80
RGBrgb(31, 44, 128)
HSLhsl(232, 61%, 31%)
HSVhsv(232, 76%, 50%)
CMYKcmyk(75.8%, 65.6%, 0%, 49.8%)
CIE-LABlab(22.48, 25.88, -48.91)
CIE-LCHlch(22.48, 55.34, 297.89°)
OKLaboklab(34.2% 0.0004 -0.1413)
OKLCHoklch(34.2% 0.141 270.2)
XYZxyz(5.3607, 3.6506, 20.8400)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C80 #80731F
analogous
#1F5C80 #1F2C80 #421F80
triadic
#1F2C80 #801F2C #2C801F
tetradic
#1F2C80 #801F5C #80731F #1F8042
square
#1F2C80 #801F5C #80731F #1F8042
split-complementary
#1F2C80 #80421F #5C801F
monochromatic
#070A1D #131B4F #1F2C80 #2B3DB1 #475AD2

Accessibility & contrast

On white

12.14
#1F2C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C80
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C80#FFFFFF#000000##FFFFFF
##1F2C801.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2c80;
/* rgb */ color: rgb(31, 44, 128);
/* oklch */ color: oklch(34.2% 0.141 270.2);
Tailwind
colors: {
  custom: {
    50: '#6a65a6',
    500: '#1f2c80',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c80;
$custom-light: #6a65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c80",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 128
  },
  "hsl": {
    "h": 231.959,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34198,
    "c": 0.14135,
    "h": 270.2
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#1F2C80
secondary
#B3A548
accent
#CF44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1F2C80

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

Preview Lab → · Contrast checker → · Palette generator →

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