#1F3286#1F3286

#1F3286 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.142 H 268.4°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#1F3286
RGBrgb(31, 50, 134)
HSLhsl(229, 62%, 32%)
HSVhsv(229, 77%, 53%)
CMYKcmyk(76.9%, 62.7%, 0%, 47.5%)
CIE-LABlab(24.62, 24.09, -49.19)
CIE-LCHlch(24.62, 54.77, 296.09°)
OKLaboklab(35.94% -0.004 -0.1421)
OKLCHoklch(35.94% 0.142 268.4)
XYZxyz(6.0073, 4.2931, 23.0617)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3286 #86731F
analogous
#1F6686 #1F3286 #401F86
triadic
#1F3286 #861F32 #32861F
tetradic
#1F3286 #861F66 #86731F #1F8640
square
#1F3286 #861F66 #86731F #1F8640
split-complementary
#1F3286 #86401F #66861F
monochromatic
#080D23 #141F54 #1F3286 #2A45B8 #4A64D5

Accessibility & contrast

On white

11.30
#1F3286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F3286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3286
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3286#FFFFFF#000000##FFFFFF
##1F32861.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f3286;
/* rgb */ color: rgb(31, 50, 134);
/* oklch */ color: oklch(35.9% 0.142 268.4);
Tailwind
colors: {
  custom: {
    50: '#6b69aa',
    500: '#1f3286',
    950: '#000000',
  },
}
SCSS
$custom: #1f3286;
$custom-light: #6b69aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3286",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 134
  },
  "hsl": {
    "h": 228.932,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35944,
    "c": 0.14216,
    "h": 268.4
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

primary
#1F3286
secondary
#B8A349
accent
#C742E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3286

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

Preview Lab → · Contrast checker → · Palette generator →

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