#1F3282#1F3282

#1F3282 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.136 H 268.3°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#1F3282
RGBrgb(31, 50, 130)
HSLhsl(228, 61%, 32%)
HSVhsv(228, 76%, 51%)
CMYKcmyk(76.2%, 61.5%, 0%, 49%)
CIE-LABlab(24.27, 22.52, -47.25)
CIE-LCHlch(24.27, 52.34, 295.48°)
OKLaboklab(35.58% -0.0041 -0.1364)
OKLCHoklch(35.58% 0.136 268.3)
XYZxyz(5.7335, 4.1836, 21.6201)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3282 #826F1F
analogous
#1F6482 #1F3282 #3E1F82
triadic
#1F3282 #821F32 #32821F
tetradic
#1F3282 #821F64 #826F1F #1F823E
square
#1F3282 #821F64 #826F1F #1F823E
split-complementary
#1F3282 #823E1F #64821F
monochromatic
#070C1F #131F51 #1F3282 #2B45B3 #4863D3

Accessibility & contrast

On white

11.43
#1F3282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F3282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3282
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3282#FFFFFF#000000##FFFFFF
##1F32821.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003580
Tritanopia (blue-blind)
#004655
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f3282;
/* rgb */ color: rgb(31, 50, 130);
/* oklch */ color: oklch(35.6% 0.136 268.3);
Tailwind
colors: {
  custom: {
    50: '#6a69a7',
    500: '#1f3282',
    950: '#000000',
  },
}
SCSS
$custom: #1f3282;
$custom-light: #6a69a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3282",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 130
  },
  "hsl": {
    "h": 228.485,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35577,
    "c": 0.13647,
    "h": 268.3
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#1F3282
secondary
#B5A048
accent
#C643E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F3282

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

Preview Lab → · Contrast checker → · Palette generator →

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