#1F3588#1F3588

#1F3588 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.141 H 267.5°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#1F3588
RGBrgb(31, 53, 136)
HSLhsl(227, 63%, 33%)
HSVhsv(227, 77%, 53%)
CMYKcmyk(77.2%, 61%, 0%, 46.7%)
CIE-LABlab(25.61, 22.80, -48.82)
CIE-LCHlch(25.61, 53.88, 295.04°)
OKLaboklab(36.73% -0.0062 -0.141)
OKLCHoklch(36.73% 0.141 267.5)
XYZxyz(6.2806, 4.6144, 23.8474)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3588 #88721F
analogous
#1F6988 #1F3588 #3E1F88
triadic
#1F3588 #881F35 #35881F
tetradic
#1F3588 #881F69 #88721F #1F883E
square
#1F3588 #881F69 #88721F #1F883E
split-complementary
#1F3588 #883E1F #69881F
monochromatic
#080E24 #142256 #1F3588 #2A48BA #4B68D6

Accessibility & contrast

On white

10.92
#1F3588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1F3588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3588
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3588#FFFFFF#000000##FFFFFF
##1F35881.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#003886
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f3588;
/* rgb */ color: rgb(31, 53, 136);
/* oklch */ color: oklch(36.7% 0.141 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c6bab',
    500: '#1f3588',
    950: '#000000',
  },
}
SCSS
$custom: #1f3588;
$custom-light: #6c6bab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3588",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 136
  },
  "hsl": {
    "h": 227.429,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36733,
    "c": 0.14112,
    "h": 267.5
  },
  "luminance": 0.04615
}

Semantic roles & 50–950 ramp

primary
#1F3588
secondary
#B9A24A
accent
#C442E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3588

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

Preview Lab → · Contrast checker → · Palette generator →

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