#1F3371#1F3371

#1F3371 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.3% C 0.110 H 267.0°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#1F3371
RGBrgb(31, 51, 113)
HSLhsl(225, 57%, 28%)
HSVhsv(225, 73%, 44%)
CMYKcmyk(72.6%, 54.9%, 0%, 55.7%)
CIE-LABlab(23.17, 15.05, -38.25)
CIE-LCHlch(23.17, 41.11, 291.48°)
OKLaboklab(34.32% -0.0058 -0.1099)
OKLCHoklch(34.32% 0.11 267)
XYZxyz(4.7285, 3.8507, 16.1137)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3371 #715D1F
analogous
#1F5C71 #1F3371 #341F71
triadic
#1F3371 #711F33 #33711F
tetradic
#1F3371 #711F5C #715D1F #1F7134
square
#1F3371 #711F5C #715D1F #1F7134
split-complementary
#1F3371 #71341F #5C711F
monochromatic
#070B18 #121D41 #1F3371 #2C49A1 #4062CB

Accessibility & contrast

On white

11.86
#1F3371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F3371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3371
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3371#FFFFFF#000000##FFFFFF
##1F33711.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3B73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#00424C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f3371;
/* rgb */ color: rgb(31, 51, 113);
/* oklch */ color: oklch(34.3% 0.110 267.0);
Tailwind
colors: {
  custom: {
    50: '#666a9a',
    500: '#1f3371',
    950: '#000000',
  },
}
SCSS
$custom: #1f3371;
$custom-light: #666a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3371",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 225.366,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34317,
    "c": 0.11009,
    "h": 267
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#1F3371
secondary
#A58E47
accent
#BB48E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F3371

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

Preview Lab → · Contrast checker → · Palette generator →

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