#1F3189#1F3189

#1F3189 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.148 H 268.7°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#1F3189
RGBrgb(31, 49, 137)
HSLhsl(230, 63%, 33%)
HSVhsv(230, 77%, 54%)
CMYKcmyk(77.4%, 64.2%, 0%, 46.3%)
CIE-LABlab(24.62, 25.95, -51.06)
CIE-LCHlch(24.62, 57.27, 296.94°)
OKLaboklab(36.03% -0.0034 -0.1476)
OKLCHoklch(36.03% 0.148 268.7)
XYZxyz(6.1772, 4.2934, 24.1652)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3189 #89771F
analogous
#1F6689 #1F3189 #421F89
triadic
#1F3189 #891F31 #31891F
tetradic
#1F3189 #891F66 #89771F #1F8942
square
#1F3189 #891F66 #89771F #1F8942
split-complementary
#1F3189 #89421F #66891F
monochromatic
#080D25 #141F57 #1F3189 #2A43BB #4C63D6

Accessibility & contrast

On white

11.30
#1F3189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F3189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3189
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3189#FFFFFF#000000##FFFFFF
##1F31891.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3189;
/* rgb */ color: rgb(31, 49, 137);
/* oklch */ color: oklch(36.0% 0.148 268.7);
Tailwind
colors: {
  custom: {
    50: '#6c69ac',
    500: '#1f3189',
    950: '#000000',
  },
}
SCSS
$custom: #1f3189;
$custom-light: #6c69ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3189",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 137
  },
  "hsl": {
    "h": 229.811,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36027,
    "c": 0.14763,
    "h": 268.7
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

primary
#1F3189
secondary
#B9A64B
accent
#CA42E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F3189

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

Preview Lab → · Contrast checker → · Palette generator →

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