#1F3385#1F3385

#1F3385 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.1% C 0.139 H 268.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#1F3385
RGBrgb(31, 51, 133)
HSLhsl(228, 62%, 32%)
HSVhsv(228, 77%, 52%)
CMYKcmyk(76.7%, 61.7%, 0%, 47.8%)
CIE-LABlab(24.80, 23.01, -48.26)
CIE-LCHlch(24.80, 53.46, 295.49°)
OKLaboklab(36.05% -0.0048 -0.1394)
OKLCHoklch(36.05% 0.139 268)
XYZxyz(5.9811, 4.3518, 22.7105)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3385 #85711F
analogous
#1F6685 #1F3385 #3E1F85
triadic
#1F3385 #851F33 #33851F
tetradic
#1F3385 #851F66 #85711F #1F853E
square
#1F3385 #851F66 #85711F #1F853E
split-complementary
#1F3385 #853E1F #66851F
monochromatic
#080D22 #132053 #1F3385 #2B46B7 #4A65D5

Accessibility & contrast

On white

11.23
#1F3385 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F3385 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3385
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3385#FFFFFF#000000##FFFFFF
##1F33851.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004088
Deuteranopia (green-blind)
#003683
Tritanopia (blue-blind)
#004857
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f3385;
/* rgb */ color: rgb(31, 51, 133);
/* oklch */ color: oklch(36.1% 0.139 268.0);
Tailwind
colors: {
  custom: {
    50: '#6b6aa9',
    500: '#1f3385',
    950: '#000000',
  },
}
SCSS
$custom: #1f3385;
$custom-light: #6b6aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3385",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 133
  },
  "hsl": {
    "h": 228.235,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36054,
    "c": 0.13945,
    "h": 268
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#1F3385
secondary
#B7A249
accent
#C543E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3385

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

Preview Lab → · Contrast checker → · Palette generator →

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