#1F3373#1F3373

#1F3373 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.5% C 0.113 H 267.2°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#1F3373
RGBrgb(31, 51, 115)
HSLhsl(226, 58%, 29%)
HSVhsv(226, 73%, 45%)
CMYKcmyk(73%, 55.7%, 0%, 54.9%)
CIE-LABlab(23.33, 15.85, -39.28)
CIE-LCHlch(23.33, 42.36, 291.97°)
OKLaboklab(34.48% -0.0056 -0.113)
OKLCHoklch(34.48% 0.113 267.2)
XYZxyz(4.8423, 3.8963, 16.7132)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3373 #735F1F
analogous
#1F5D73 #1F3373 #351F73
triadic
#1F3373 #731F33 #33731F
tetradic
#1F3373 #731F5D #735F1F #1F7335
square
#1F3373 #731F5D #735F1F #1F7335
split-complementary
#1F3373 #73351F #5D731F
monochromatic
#060B18 #121E43 #1F3373 #2C48A3 #4162CC

Accessibility & contrast

On white

11.80
#1F3373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F3373 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3373
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3373#FFFFFF#000000##FFFFFF
##1F33731.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063C75
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#00424D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f3373;
/* rgb */ color: rgb(31, 51, 115);
/* oklch */ color: oklch(34.5% 0.113 267.2);
Tailwind
colors: {
  custom: {
    50: '#666a9c',
    500: '#1f3373',
    950: '#000000',
  },
}
SCSS
$custom: #1f3373;
$custom-light: #666a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3373",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 115
  },
  "hsl": {
    "h": 225.714,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34483,
    "c": 0.11311,
    "h": 267.2
  },
  "luminance": 0.03897
}

Semantic roles & 50–950 ramp

primary
#1F3373
secondary
#A79047
accent
#BC47E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F3373

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

Preview Lab → · Contrast checker → · Palette generator →

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