#1F3289#1F3289

#1F3289 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.146 H 268.4°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#1F3289
RGBrgb(31, 50, 137)
HSLhsl(229, 63%, 33%)
HSVhsv(229, 77%, 54%)
CMYKcmyk(77.4%, 63.5%, 0%, 46.3%)
CIE-LABlab(24.88, 25.26, -50.62)
CIE-LCHlch(24.88, 56.58, 296.52°)
OKLaboklab(36.22% -0.0041 -0.1463)
OKLCHoklch(36.22% 0.146 268.4)
XYZxyz(6.2195, 4.3780, 24.1793)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3289 #89761F
analogous
#1F6789 #1F3289 #411F89
triadic
#1F3289 #891F32 #32891F
tetradic
#1F3289 #891F67 #89761F #1F8941
square
#1F3289 #891F67 #89761F #1F8941
split-complementary
#1F3289 #89411F #67891F
monochromatic
#080E25 #142057 #1F3289 #2A44BB #4C65D6

Accessibility & contrast

On white

11.20
#1F3289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F3289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3289
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3289#FFFFFF#000000##FFFFFF
##1F32891.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408C
Deuteranopia (green-blind)
#003687
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f3289;
/* rgb */ color: rgb(31, 50, 137);
/* oklch */ color: oklch(36.2% 0.146 268.4);
Tailwind
colors: {
  custom: {
    50: '#6c69ac',
    500: '#1f3289',
    950: '#000000',
  },
}
SCSS
$custom: #1f3289;
$custom-light: #6c69ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3289",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 137
  },
  "hsl": {
    "h": 229.245,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36223,
    "c": 0.14637,
    "h": 268.4
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#1F3289
secondary
#B9A54B
accent
#C942E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F3289

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

Preview Lab → · Contrast checker → · Palette generator →

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