#1F3288#1F3288

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

Color values

HEX#1F3288
RGBrgb(31, 50, 136)
HSLhsl(229, 63%, 33%)
HSVhsv(229, 77%, 53%)
CMYKcmyk(77.2%, 63.2%, 0%, 46.7%)
CIE-LABlab(24.79, 24.87, -50.15)
CIE-LCHlch(24.79, 55.98, 296.38°)
OKLaboklab(36.13% -0.0041 -0.1449)
OKLCHoklch(36.13% 0.145 268.4)
XYZxyz(6.1481, 4.3494, 23.8033)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3288 #88751F
analogous
#1F6688 #1F3288 #411F88
triadic
#1F3288 #881F32 #32881F
tetradic
#1F3288 #881F66 #88751F #1F8841
square
#1F3288 #881F66 #88751F #1F8841
split-complementary
#1F3288 #88411F #66881F
monochromatic
#080D24 #142056 #1F3288 #2A44BA #4B64D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F3288#FFFFFF#000000##FFFFFF
##1F32881.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)
#00408B
Deuteranopia (green-blind)
#003686
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f3288;
/* rgb */ color: rgb(31, 50, 136);
/* oklch */ color: oklch(36.1% 0.145 268.4);
Tailwind
colors: {
  custom: {
    50: '#6c69ab',
    500: '#1f3288',
    950: '#000000',
  },
}
SCSS
$custom: #1f3288;
$custom-light: #6c69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3288",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 136
  },
  "hsl": {
    "h": 229.143,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3613,
    "c": 0.14497,
    "h": 268.4
  },
  "luminance": 0.0435
}

Semantic roles & 50–950 ramp

primary
#1F3288
secondary
#B9A54A
accent
#C842E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F3288

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

Preview Lab → · Contrast checker → · Palette generator →

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