#1F337C#1F337C

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

Color values

HEX#1F337C
RGBrgb(31, 51, 124)
HSLhsl(227, 60%, 30%)
HSVhsv(227, 75%, 49%)
CMYKcmyk(75%, 58.9%, 0%, 51.4%)
CIE-LABlab(24.04, 19.44, -43.84)
CIE-LCHlch(24.04, 47.96, 293.92°)
OKLaboklab(35.25% -0.005 -0.1264)
OKLCHoklch(35.25% 0.126 267.7)
XYZxyz(5.3857, 4.1136, 19.5750)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F337C #7C681F
analogous
#1F617C #1F337C #3A1F7C
triadic
#1F337C #7C1F33 #337C1F
tetradic
#1F337C #7C1F61 #7C681F #1F7C3A
square
#1F337C #7C1F61 #7C681F #1F7C3A
split-complementary
#1F337C #7C3A1F #617C1F
monochromatic
#070B1A #131F4B #1F337C #2B47AD #4563D0

Accessibility & contrast

On white

11.52
#1F337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F337C
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F337C#FFFFFF#000000##FFFFFF
##1F337C1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f337c;
/* rgb */ color: rgb(31, 51, 124);
/* oklch */ color: oklch(35.3% 0.126 267.7);
Tailwind
colors: {
  custom: {
    50: '#696aa3',
    500: '#1f337c',
    950: '#000000',
  },
}
SCSS
$custom: #1f337c;
$custom-light: #696aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f337c",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 227.097,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3525,
    "c": 0.12647,
    "h": 267.7
  },
  "luminance": 0.04114
}

Semantic roles & 50–950 ramp

primary
#1F337C
secondary
#AF9948
accent
#C145E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F337C

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

Preview Lab → · Contrast checker → · Palette generator →

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