#1F3372#1F3372

#1F3372 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.4% C 0.112 H 267.1°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#1F3372
RGBrgb(31, 51, 114)
HSLhsl(226, 57%, 28%)
HSVhsv(226, 73%, 45%)
CMYKcmyk(72.8%, 55.3%, 0%, 55.3%)
CIE-LABlab(23.25, 15.45, -38.77)
CIE-LCHlch(23.25, 41.73, 291.73°)
OKLaboklab(34.4% -0.0057 -0.1115)
OKLCHoklch(34.4% 0.112 267.1)
XYZxyz(4.7851, 3.8734, 16.4118)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3372 #725E1F
analogous
#1F5C72 #1F3372 #341F72
triadic
#1F3372 #721F33 #33721F
tetradic
#1F3372 #721F5C #725E1F #1F7234
square
#1F3372 #721F5C #725E1F #1F7234
split-complementary
#1F3372 #72341F #5C721F
monochromatic
#070B18 #121D42 #1F3372 #2C49A2 #4062CB

Accessibility & contrast

On white

11.83
#1F3372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3372
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3372#FFFFFF#000000##FFFFFF
##1F33721.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083B74
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#00424D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f3372;
/* rgb */ color: rgb(31, 51, 114);
/* oklch */ color: oklch(34.4% 0.112 267.1);
Tailwind
colors: {
  custom: {
    50: '#666a9b',
    500: '#1f3372',
    950: '#000000',
  },
}
SCSS
$custom: #1f3372;
$custom-light: #666a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3372",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 114
  },
  "hsl": {
    "h": 225.542,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.344,
    "c": 0.11161,
    "h": 267.1
  },
  "luminance": 0.03874
}

Semantic roles & 50–950 ramp

primary
#1F3372
secondary
#A68F47
accent
#BC47E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F3372

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

Preview Lab → · Contrast checker → · Palette generator →

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