#1F317A#1F317A

#1F317A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.126 H 268.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#1F317A
RGBrgb(31, 49, 122)
HSLhsl(228, 59%, 30%)
HSVhsv(228, 75%, 48%)
CMYKcmyk(74.6%, 59.8%, 0%, 52.2%)
CIE-LABlab(23.31, 20.06, -43.76)
CIE-LCHlch(23.31, 48.14, 294.62°)
OKLaboklab(34.65% -0.0034 -0.1262)
OKLCHoklch(34.65% 0.126 268.4)
XYZxyz(5.1750, 3.8925, 18.8872)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F317A #7A681F
analogous
#1F5E7A #1F317A #3B1F7A
triadic
#1F317A #7A1F31 #317A1F
tetradic
#1F317A #7A1F5E #7A681F #1F7A3B
square
#1F317A #7A1F5E #7A681F #1F7A3B
split-complementary
#1F317A #7A3B1F #5E7A1F
monochromatic
#060A18 #131D49 #1F317A #2B45AB #4460CF

Accessibility & contrast

On white

11.81
#1F317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F317A
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F317A#FFFFFF#000000##FFFFFF
##1F317A1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f317a;
/* rgb */ color: rgb(31, 49, 122);
/* oklch */ color: oklch(34.7% 0.126 268.4);
Tailwind
colors: {
  custom: {
    50: '#6868a1',
    500: '#1f317a',
    950: '#000000',
  },
}
SCSS
$custom: #1f317a;
$custom-light: #6868a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f317a",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 228.132,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.34651,
    "c": 0.12622,
    "h": 268.4
  },
  "luminance": 0.03893
}

Semantic roles & 50–950 ramp

primary
#1F317A
secondary
#AD9947
accent
#C345E3
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F317A

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

Preview Lab → · Contrast checker → · Palette generator →

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