#1F3374#1F3374

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

Color values

HEX#1F3374
RGBrgb(31, 51, 116)
HSLhsl(226, 58%, 29%)
HSVhsv(226, 73%, 45%)
CMYKcmyk(73.3%, 56%, 0%, 54.5%)
CIE-LABlab(23.40, 16.25, -39.80)
CIE-LCHlch(23.40, 42.99, 292.21°)
OKLaboklab(34.57% -0.0055 -0.1145)
OKLCHoklch(34.57% 0.115 267.2)
XYZxyz(4.9002, 3.9194, 17.0179)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3374 #74601F
analogous
#1F5E74 #1F3374 #361F74
triadic
#1F3374 #741F33 #33741F
tetradic
#1F3374 #741F5E #74601F #1F7436
square
#1F3374 #741F5E #74601F #1F7436
split-complementary
#1F3374 #74361F #5E741F
monochromatic
#060B18 #121E44 #1F3374 #2C48A4 #4162CC

Accessibility & contrast

On white

11.77
#1F3374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3374
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3374#FFFFFF#000000##FFFFFF
##1F33741.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043C76
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#00434E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f3374;
/* rgb */ color: rgb(31, 51, 116);
/* oklch */ color: oklch(34.6% 0.115 267.2);
Tailwind
colors: {
  custom: {
    50: '#676a9d',
    500: '#1f3374',
    950: '#000000',
  },
}
SCSS
$custom: #1f3374;
$custom-light: #676a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3374",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 116
  },
  "hsl": {
    "h": 225.882,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34566,
    "c": 0.11461,
    "h": 267.2
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

primary
#1F3374
secondary
#A89147
accent
#BD47E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F3374

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

Preview Lab → · Contrast checker → · Palette generator →

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