#1F2D81#1F2D81

#1F2D81 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.141 H 269.9°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#1F2D81
RGBrgb(31, 45, 129)
HSLhsl(231, 61%, 31%)
HSVhsv(231, 76%, 51%)
CMYKcmyk(76%, 65.1%, 0%, 49.4%)
CIE-LABlab(22.84, 25.58, -48.96)
CIE-LCHlch(22.84, 55.24, 297.59°)
OKLaboklab(34.49% -0.0004 -0.1415)
OKLCHoklch(34.49% 0.141 269.9)
XYZxyz(5.4646, 3.7525, 21.2009)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D81 #81731F
analogous
#1F5E81 #1F2D81 #421F81
triadic
#1F2D81 #811F2D #2D811F
tetradic
#1F2D81 #811F5E #81731F #1F8142
square
#1F2D81 #811F5E #81731F #1F8142
split-complementary
#1F2D81 #81421F #5E811F
monochromatic
#070B1E #131C50 #1F2D81 #2B3EB2 #475BD3

Accessibility & contrast

On white

12.00
#1F2D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D81
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D81#FFFFFF#000000##FFFFFF
##1F2D811.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2d81;
/* rgb */ color: rgb(31, 45, 129);
/* oklch */ color: oklch(34.5% 0.141 269.9);
Tailwind
colors: {
  custom: {
    50: '#6b65a6',
    500: '#1f2d81',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d81;
$custom-light: #6b65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d81",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 231.429,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34487,
    "c": 0.14149,
    "h": 269.9
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#1F2D81
secondary
#B4A448
accent
#CD43E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #1F2D81

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

Preview Lab → · Contrast checker → · Palette generator →

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