#1F3188#1F3188

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

Color values

HEX#1F3188
RGBrgb(31, 49, 136)
HSLhsl(230, 63%, 33%)
HSVhsv(230, 77%, 53%)
CMYKcmyk(77.2%, 64%, 0%, 46.7%)
CIE-LABlab(24.53, 25.56, -50.58)
CIE-LCHlch(24.53, 56.67, 296.81°)
OKLaboklab(35.93% -0.0034 -0.1462)
OKLCHoklch(35.93% 0.146 268.7)
XYZxyz(6.1058, 4.2648, 23.7892)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3188 #88761F
analogous
#1F6688 #1F3188 #411F88
triadic
#1F3188 #881F31 #31881F
tetradic
#1F3188 #881F66 #88761F #1F8841
square
#1F3188 #881F66 #88761F #1F8841
split-complementary
#1F3188 #88411F #66881F
monochromatic
#080D24 #141F56 #1F3188 #2A43BA #4B63D6

Accessibility & contrast

On white

11.33
#1F3188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F3188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3188
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3188#FFFFFF#000000##FFFFFF
##1F31881.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f3188;
/* rgb */ color: rgb(31, 49, 136);
/* oklch */ color: oklch(35.9% 0.146 268.7);
Tailwind
colors: {
  custom: {
    50: '#6c69ac',
    500: '#1f3188',
    950: '#000000',
  },
}
SCSS
$custom: #1f3188;
$custom-light: #6c69ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3188",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 229.714,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35933,
    "c": 0.14624,
    "h": 268.7
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F3188

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

Preview Lab → · Contrast checker → · Palette generator →

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