#1F2F82#1F2F82

#1F2F82 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.140 H 269.3°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#1F2F82
RGBrgb(31, 47, 130)
HSLhsl(230, 61%, 32%)
HSVhsv(230, 76%, 51%)
CMYKcmyk(76.2%, 63.8%, 0%, 49%)
CIE-LABlab(23.46, 24.60, -48.58)
CIE-LCHlch(23.46, 54.45, 296.86°)
OKLaboklab(34.97% -0.0018 -0.1403)
OKLCHoklch(34.97% 0.14 269.3)
XYZxyz(5.6095, 3.9354, 21.5788)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F82 #82721F
analogous
#1F6182 #1F2F82 #411F82
triadic
#1F2F82 #821F2F #2F821F
tetradic
#1F2F82 #821F61 #82721F #1F8241
square
#1F2F82 #821F61 #82721F #1F8241
split-complementary
#1F2F82 #82411F #61821F
monochromatic
#070B1F #131D51 #1F2F82 #2B41B3 #485FD3

Accessibility & contrast

On white

11.75
#1F2F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F82
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F82#FFFFFF#000000##FFFFFF
##1F2F821.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2f82;
/* rgb */ color: rgb(31, 47, 130);
/* oklch */ color: oklch(35.0% 0.140 269.3);
Tailwind
colors: {
  custom: {
    50: '#6b67a7',
    500: '#1f2f82',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f82;
$custom-light: #6b67a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f82",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 230.303,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34974,
    "c": 0.14035,
    "h": 269.3
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#1F2F82
secondary
#B5A348
accent
#CB43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #1F2F82

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

Preview Lab → · Contrast checker → · Palette generator →

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