#1F337E#1F337E

#1F337E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.4% C 0.129 H 267.8°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#1F337E
RGBrgb(31, 51, 126)
HSLhsl(227, 61%, 31%)
HSVhsv(227, 75%, 49%)
CMYKcmyk(75.4%, 59.5%, 0%, 50.6%)
CIE-LABlab(24.21, 20.24, -44.83)
CIE-LCHlch(24.21, 49.19, 294.30°)
OKLaboklab(35.43% -0.0049 -0.1293)
OKLCHoklch(35.43% 0.129 267.8)
XYZxyz(5.5135, 4.1647, 20.2479)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F337E #7E6A1F
analogous
#1F627E #1F337E #3A1F7E
triadic
#1F337E #7E1F33 #337E1F
tetradic
#1F337E #7E1F62 #7E6A1F #1F7E3A
square
#1F337E #7E1F62 #7E6A1F #1F7E3A
split-complementary
#1F337E #7E3A1F #627E1F
monochromatic
#070B1C #131F4D #1F337E #2B47AF #4663D1

Accessibility & contrast

On white

11.46
#1F337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F337E
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F337E#FFFFFF#000000##FFFFFF
##1F337E1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f337e;
/* rgb */ color: rgb(31, 51, 126);
/* oklch */ color: oklch(35.4% 0.129 267.8);
Tailwind
colors: {
  custom: {
    50: '#696aa4',
    500: '#1f337e',
    950: '#000000',
  },
}
SCSS
$custom: #1f337e;
$custom-light: #696aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f337e",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 227.368,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35425,
    "c": 0.12938,
    "h": 267.8
  },
  "luminance": 0.04165
}

Semantic roles & 50–950 ramp

primary
#1F337E
secondary
#B19B48
accent
#C244E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F337E

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

Preview Lab → · Contrast checker → · Palette generator →

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