#1F3397#1F3397

#1F3397 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.164 H 268.2°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#1F3397
RGBrgb(31, 51, 151)
HSLhsl(230, 66%, 36%)
HSVhsv(230, 79%, 59%)
CMYKcmyk(79.5%, 66.2%, 0%, 40.8%)
CIE-LABlab(26.43, 29.98, -56.75)
CIE-LCHlch(26.43, 64.18, 297.85°)
OKLaboklab(37.76% -0.0052 -0.1642)
OKLCHoklch(37.76% 0.164 268.2)
XYZxyz(7.3329, 4.8925, 29.8300)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3397 #97831F
analogous
#1F6F97 #1F3397 #471F97
triadic
#1F3397 #971F33 #33971F
tetradic
#1F3397 #971F6F #97831F #1F9747
square
#1F3397 #971F6F #97831F #1F9747
split-complementary
#1F3397 #97471F #6F971F
monochromatic
#0A1131 #152264 #1F3397 #2944CA #546BDC

Accessibility & contrast

On white

10.61
#1F3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1F3397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3397
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3397#FFFFFF#000000##FFFFFF
##1F33971.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3397;
/* rgb */ color: rgb(31, 51, 151);
/* oklch */ color: oklch(37.8% 0.164 268.2);
Tailwind
colors: {
  custom: {
    50: '#706ab7',
    500: '#1f3397',
    950: '#000000',
  },
}
SCSS
$custom: #1f3397;
$custom-light: #706ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3397",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 230,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37755,
    "c": 0.16431,
    "h": 268.2
  },
  "luminance": 0.04893
}

Semantic roles & 50–950 ramp

primary
#1F3397
secondary
#BFAD52
accent
#CD3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F3397

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

Preview Lab → · Contrast checker → · Palette generator →

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