#1F2C82#1F2C82

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

Color values

HEX#1F2C82
RGBrgb(31, 44, 130)
HSLhsl(232, 61%, 32%)
HSVhsv(232, 76%, 51%)
CMYKcmyk(76.2%, 66.2%, 0%, 49%)
CIE-LABlab(22.67, 26.65, -49.87)
CIE-LCHlch(22.67, 56.54, 298.12°)
OKLaboklab(34.39% 0.0003 -0.1442)
OKLCHoklch(34.39% 0.144 270.1)
XYZxyz(5.4936, 3.7038, 21.5401)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C82 #82751F
analogous
#1F5E82 #1F2C82 #441F82
triadic
#1F2C82 #821F2C #2C821F
tetradic
#1F2C82 #821F5E #82751F #1F8244
square
#1F2C82 #821F5E #82751F #1F8244
split-complementary
#1F2C82 #82441F #5E821F
monochromatic
#070B1F #131B51 #1F2C82 #2B3DB3 #485AD3

Accessibility & contrast

On white

12.06
#1F2C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2C82
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C82#FFFFFF#000000##FFFFFF
##1F2C821.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2c82;
/* rgb */ color: rgb(31, 44, 130);
/* oklch */ color: oklch(34.4% 0.144 270.1);
Tailwind
colors: {
  custom: {
    50: '#6b65a7',
    500: '#1f2c82',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c82;
$custom-light: #6b65a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c82",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 130
  },
  "hsl": {
    "h": 232.121,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34392,
    "c": 0.14416,
    "h": 270.1
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#1F2C82
secondary
#B5A748
accent
#CF43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #1F2C82

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

Preview Lab → · Contrast checker → · Palette generator →

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