#1F3579#1F3579

#1F3579 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.4% C 0.119 H 266.7°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#1F3579
RGBrgb(31, 53, 121)
HSLhsl(225, 59%, 30%)
HSVhsv(225, 74%, 47%)
CMYKcmyk(74.4%, 56.2%, 0%, 52.5%)
CIE-LABlab(24.38, 16.84, -41.40)
CIE-LCHlch(24.38, 44.69, 292.13°)
OKLaboklab(35.43% -0.0069 -0.1192)
OKLCHoklch(35.43% 0.119 266.7)
XYZxyz(5.2882, 4.2174, 18.6208)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3579 #79631F
analogous
#1F6279 #1F3579 #361F79
triadic
#1F3579 #791F35 #35791F
tetradic
#1F3579 #791F62 #79631F #1F7936
square
#1F3579 #791F62 #79631F #1F7936
split-complementary
#1F3579 #79361F #62791F
monochromatic
#060B18 #132048 #1F3579 #2B4AAA #4366CF

Accessibility & contrast

On white

11.39
#1F3579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F3579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3579
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3579#FFFFFF#000000##FFFFFF
##1F35791.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013E7B
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#004551
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f3579;
/* rgb */ color: rgb(31, 53, 121);
/* oklch */ color: oklch(35.4% 0.119 266.7);
Tailwind
colors: {
  custom: {
    50: '#686ba0',
    500: '#1f3579',
    950: '#000000',
  },
}
SCSS
$custom: #1f3579;
$custom-light: #686ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3579",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 121
  },
  "hsl": {
    "h": 225.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35425,
    "c": 0.11936,
    "h": 266.7
  },
  "luminance": 0.04218
}

Semantic roles & 50–950 ramp

primary
#1F3579
secondary
#AC9447
accent
#BC45E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #1F3579

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

Preview Lab → · Contrast checker → · Palette generator →

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