#1F337B#1F337B

#1F337B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.2% C 0.125 H 267.7°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#1F337B
RGBrgb(31, 51, 123)
HSLhsl(227, 60%, 30%)
HSVhsv(227, 75%, 48%)
CMYKcmyk(74.8%, 58.5%, 0%, 51.8%)
CIE-LABlab(23.96, 19.05, -43.34)
CIE-LCHlch(23.96, 47.34, 293.72°)
OKLaboklab(35.16% -0.0051 -0.1249)
OKLCHoklch(35.16% 0.125 267.7)
XYZxyz(5.3228, 4.0885, 19.2437)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F337B #7B671F
analogous
#1F617B #1F337B #391F7B
triadic
#1F337B #7B1F33 #337B1F
tetradic
#1F337B #7B1F61 #7B671F #1F7B39
square
#1F337B #7B1F61 #7B671F #1F7B39
split-complementary
#1F337B #7B391F #617B1F
monochromatic
#060A19 #131F4A #1F337B #2B47AC #4463D0

Accessibility & contrast

On white

11.55
#1F337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F337B
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F337B#FFFFFF#000000##FFFFFF
##1F337B1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#004551
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f337b;
/* rgb */ color: rgb(31, 51, 123);
/* oklch */ color: oklch(35.2% 0.125 267.7);
Tailwind
colors: {
  custom: {
    50: '#686aa2',
    500: '#1f337b',
    950: '#000000',
  },
}
SCSS
$custom: #1f337b;
$custom-light: #686aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f337b",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 226.957,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35163,
    "c": 0.125,
    "h": 267.7
  },
  "luminance": 0.04089
}

Semantic roles & 50–950 ramp

primary
#1F337B
secondary
#AE9848
accent
#C145E3
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F337B

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

Preview Lab → · Contrast checker → · Palette generator →

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