#1F317B#1F317B

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

Color values

HEX#1F317B
RGBrgb(31, 49, 123)
HSLhsl(228, 60%, 30%)
HSVhsv(228, 75%, 48%)
CMYKcmyk(74.8%, 60.2%, 0%, 51.8%)
CIE-LABlab(23.40, 20.45, -44.26)
CIE-LCHlch(23.40, 48.75, 294.80°)
OKLaboklab(34.74% -0.0034 -0.1276)
OKLCHoklch(34.74% 0.128 268.5)
XYZxyz(5.2373, 3.9175, 19.2152)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F317B #7B691F
analogous
#1F5F7B #1F317B #3B1F7B
triadic
#1F317B #7B1F31 #317B1F
tetradic
#1F317B #7B1F5F #7B691F #1F7B3B
square
#1F317B #7B1F5F #7B691F #1F7B3B
split-complementary
#1F317B #7B3B1F #5F7B1F
monochromatic
#060A19 #131E4A #1F317B #2B44AC #4460D0

Accessibility & contrast

On white

11.77
#1F317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F317B
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F317B#FFFFFF#000000##FFFFFF
##1F317B1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f317b;
/* rgb */ color: rgb(31, 49, 123);
/* oklch */ color: oklch(34.7% 0.128 268.5);
Tailwind
colors: {
  custom: {
    50: '#6968a2',
    500: '#1f317b',
    950: '#000000',
  },
}
SCSS
$custom: #1f317b;
$custom-light: #6968a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f317b",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 228.261,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3474,
    "c": 0.12768,
    "h": 268.5
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#1F317B
secondary
#AE9A48
accent
#C445E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F317B

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

Preview Lab → · Contrast checker → · Palette generator →

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