#1F3281#1F3281

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

Color values

HEX#1F3281
RGBrgb(31, 50, 129)
HSLhsl(228, 61%, 31%)
HSVhsv(228, 76%, 51%)
CMYKcmyk(76%, 61.2%, 0%, 49.4%)
CIE-LABlab(24.18, 22.13, -46.76)
CIE-LCHlch(24.18, 51.73, 295.32°)
OKLaboklab(35.49% -0.0041 -0.135)
OKLCHoklch(35.49% 0.135 268.3)
XYZxyz(5.6668, 4.1569, 21.2683)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3281 #816E1F
analogous
#1F6381 #1F3281 #3D1F81
triadic
#1F3281 #811F32 #32811F
tetradic
#1F3281 #811F63 #816E1F #1F813D
square
#1F3281 #811F63 #816E1F #1F813D
split-complementary
#1F3281 #813D1F #63811F
monochromatic
#070C1E #131F50 #1F3281 #2B45B2 #4763D3

Accessibility & contrast

On white

11.47
#1F3281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F3281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3281
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3281#FFFFFF#000000##FFFFFF
##1F32811.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f3281;
/* rgb */ color: rgb(31, 50, 129);
/* oklch */ color: oklch(35.5% 0.135 268.3);
Tailwind
colors: {
  custom: {
    50: '#6a69a6',
    500: '#1f3281',
    950: '#000000',
  },
}
SCSS
$custom: #1f3281;
$custom-light: #6a69a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3281",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 129
  },
  "hsl": {
    "h": 228.367,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35486,
    "c": 0.13504,
    "h": 268.3
  },
  "luminance": 0.04157
}

Semantic roles & 50–950 ramp

primary
#1F3281
secondary
#B49F48
accent
#C543E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F3281

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

Preview Lab → · Contrast checker → · Palette generator →

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