#1F337A#1F337A

#1F337A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.1% C 0.124 H 267.6°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#1F337A
RGBrgb(31, 51, 122)
HSLhsl(227, 59%, 30%)
HSVhsv(227, 75%, 48%)
CMYKcmyk(74.6%, 58.2%, 0%, 52.2%)
CIE-LABlab(23.88, 18.65, -42.84)
CIE-LCHlch(23.88, 46.72, 293.52°)
OKLaboklab(35.08% -0.0051 -0.1234)
OKLCHoklch(35.08% 0.124 267.6)
XYZxyz(5.2605, 4.0636, 18.9157)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F337A #7A661F
analogous
#1F617A #1F337A #381F7A
triadic
#1F337A #7A1F33 #337A1F
tetradic
#1F337A #7A1F61 #7A661F #1F7A38
square
#1F337A #7A1F61 #7A661F #1F7A38
split-complementary
#1F337A #7A381F #617A1F
monochromatic
#060A18 #131F49 #1F337A #2B47AB #4463CF

Accessibility & contrast

On white

11.58
#1F337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F337A
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F337A#FFFFFF#000000##FFFFFF
##1F337A1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f337a;
/* rgb */ color: rgb(31, 51, 122);
/* oklch */ color: oklch(35.1% 0.124 267.6);
Tailwind
colors: {
  custom: {
    50: '#686aa1',
    500: '#1f337a',
    950: '#000000',
  },
}
SCSS
$custom: #1f337a;
$custom-light: #686aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f337a",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 226.813,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.35076,
    "c": 0.12354,
    "h": 267.6
  },
  "luminance": 0.04064
}

Semantic roles & 50–950 ramp

primary
#1F337A
secondary
#AD9747
accent
#C045E3
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F337A

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

Preview Lab → · Contrast checker → · Palette generator →

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