#1F3182#1F3182

#1F3182 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.138 H 268.6°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#1F3182
RGBrgb(31, 49, 130)
HSLhsl(229, 61%, 32%)
HSVhsv(229, 76%, 51%)
CMYKcmyk(76.2%, 62.3%, 0%, 49%)
CIE-LABlab(24.00, 23.21, -47.70)
CIE-LCHlch(24.00, 53.05, 295.95°)
OKLaboklab(35.37% -0.0033 -0.1377)
OKLCHoklch(35.37% 0.138 268.6)
XYZxyz(5.6913, 4.0990, 21.6060)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3182 #82701F
analogous
#1F6382 #1F3182 #3F1F82
triadic
#1F3182 #821F31 #31821F
tetradic
#1F3182 #821F63 #82701F #1F823F
square
#1F3182 #821F63 #82701F #1F823F
split-complementary
#1F3182 #823F1F #63821F
monochromatic
#070C1F #131E51 #1F3182 #2B44B3 #4861D3

Accessibility & contrast

On white

11.54
#1F3182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F3182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3182
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3182#FFFFFF#000000##FFFFFF
##1F31821.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003580
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f3182;
/* rgb */ color: rgb(31, 49, 130);
/* oklch */ color: oklch(35.4% 0.138 268.6);
Tailwind
colors: {
  custom: {
    50: '#6a68a7',
    500: '#1f3182',
    950: '#000000',
  },
}
SCSS
$custom: #1f3182;
$custom-light: #6a68a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3182",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 130
  },
  "hsl": {
    "h": 229.091,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35373,
    "c": 0.13777,
    "h": 268.6
  },
  "luminance": 0.041
}

Semantic roles & 50–950 ramp

primary
#1F3182
secondary
#B5A148
accent
#C743E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F3182

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

Preview Lab → · Contrast checker → · Palette generator →

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