#1F317E#1F317E

#1F317E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.132 H 268.6°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#1F317E
RGBrgb(31, 49, 126)
HSLhsl(229, 61%, 31%)
HSVhsv(229, 75%, 49%)
CMYKcmyk(75.4%, 61.1%, 0%, 50.6%)
CIE-LABlab(23.65, 21.64, -45.74)
CIE-LCHlch(23.65, 50.60, 295.32°)
OKLaboklab(35.01% -0.0033 -0.132)
OKLCHoklch(35.01% 0.132 268.6)
XYZxyz(5.4280, 3.9937, 20.2194)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F317E #7E6C1F
analogous
#1F607E #1F317E #3C1F7E
triadic
#1F317E #7E1F31 #317E1F
tetradic
#1F317E #7E1F60 #7E6C1F #1F7E3C
square
#1F317E #7E1F60 #7E6C1F #1F7E3C
split-complementary
#1F317E #7E3C1F #607E1F
monochromatic
#070B1C #131E4D #1F317E #2B44AF #4660D1

Accessibility & contrast

On white

11.67
#1F317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F317E
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F317E#FFFFFF#000000##FFFFFF
##1F317E1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f317e;
/* rgb */ color: rgb(31, 49, 126);
/* oklch */ color: oklch(35.0% 0.132 268.6);
Tailwind
colors: {
  custom: {
    50: '#6968a4',
    500: '#1f317e',
    950: '#000000',
  },
}
SCSS
$custom: #1f317e;
$custom-light: #6968a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f317e",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 228.632,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35009,
    "c": 0.13203,
    "h": 268.6
  },
  "luminance": 0.03994
}

Semantic roles & 50–950 ramp

primary
#1F317E
secondary
#B19D48
accent
#C544E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F317E

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

Preview Lab → · Contrast checker → · Palette generator →

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