#1F3388#1F3388

#1F3388 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.144 H 268.1°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#1F3388
RGBrgb(31, 51, 136)
HSLhsl(229, 63%, 33%)
HSVhsv(229, 77%, 53%)
CMYKcmyk(77.2%, 62.5%, 0%, 46.7%)
CIE-LABlab(25.06, 24.18, -49.71)
CIE-LCHlch(25.06, 55.28, 295.94°)
OKLaboklab(36.33% -0.0048 -0.1436)
OKLCHoklch(36.33% 0.144 268.1)
XYZxyz(6.1913, 4.4359, 23.8177)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3388 #88741F
analogous
#1F6888 #1F3388 #3F1F88
triadic
#1F3388 #881F33 #33881F
tetradic
#1F3388 #881F68 #88741F #1F883F
square
#1F3388 #881F68 #88741F #1F883F
split-complementary
#1F3388 #883F1F #68881F
monochromatic
#080E24 #142056 #1F3388 #2A46BA #4B66D6

Accessibility & contrast

On white

11.13
#1F3388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F3388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3388
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3388#FFFFFF#000000##FFFFFF
##1F33881.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408B
Deuteranopia (green-blind)
#003786
Tritanopia (blue-blind)
#004958
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f3388;
/* rgb */ color: rgb(31, 51, 136);
/* oklch */ color: oklch(36.3% 0.144 268.1);
Tailwind
colors: {
  custom: {
    50: '#6c6aab',
    500: '#1f3388',
    950: '#000000',
  },
}
SCSS
$custom: #1f3388;
$custom-light: #6c6aab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3388",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 136
  },
  "hsl": {
    "h": 228.571,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36329,
    "c": 0.14369,
    "h": 268.1
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#1F3388
secondary
#B9A44A
accent
#C742E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F3388

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

Preview Lab → · Contrast checker → · Palette generator →

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