#1F337F#1F337F

#1F337F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.5% C 0.131 H 267.9°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#1F337F
RGBrgb(31, 51, 127)
HSLhsl(228, 61%, 31%)
HSVhsv(228, 76%, 50%)
CMYKcmyk(75.6%, 59.8%, 0%, 50.2%)
CIE-LABlab(24.29, 20.64, -45.33)
CIE-LCHlch(24.29, 49.80, 294.48°)
OKLaboklab(35.51% -0.0049 -0.1307)
OKLCHoklch(35.51% 0.131 267.9)
XYZxyz(5.5783, 4.1907, 20.5894)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F337F #7F6B1F
analogous
#1F637F #1F337F #3B1F7F
triadic
#1F337F #7F1F33 #337F1F
tetradic
#1F337F #7F1F63 #7F6B1F #1F7F3B
square
#1F337F #7F1F63 #7F6B1F #1F7F3B
split-complementary
#1F337F #7F3B1F #637F1F
monochromatic
#070B1D #131F4E #1F337F #2B47B0 #4664D2

Accessibility & contrast

On white

11.42
#1F337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F337F
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F337F#FFFFFF#000000##FFFFFF
##1F337F1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f337f;
/* rgb */ color: rgb(31, 51, 127);
/* oklch */ color: oklch(35.5% 0.131 267.9);
Tailwind
colors: {
  custom: {
    50: '#696aa5',
    500: '#1f337f',
    950: '#000000',
  },
}
SCSS
$custom: #1f337f;
$custom-light: #696aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f337f",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 227.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35514,
    "c": 0.13084,
    "h": 267.9
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#1F337F
secondary
#B29C48
accent
#C344E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F337F

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

Preview Lab → · Contrast checker → · Palette generator →

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