#1F317F#1F317F

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

Color values

HEX#1F317F
RGBrgb(31, 49, 127)
HSLhsl(229, 61%, 31%)
HSVhsv(229, 76%, 50%)
CMYKcmyk(75.6%, 61.4%, 0%, 50.2%)
CIE-LABlab(23.74, 22.03, -46.23)
CIE-LCHlch(23.74, 51.21, 295.48°)
OKLaboklab(35.1% -0.0033 -0.1334)
OKLCHoklch(35.1% 0.133 268.6)
XYZxyz(5.4928, 4.0197, 20.5609)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F317F #7F6D1F
analogous
#1F617F #1F317F #3D1F7F
triadic
#1F317F #7F1F31 #317F1F
tetradic
#1F317F #7F1F61 #7F6D1F #1F7F3D
square
#1F317F #7F1F61 #7F6D1F #1F7F3D
split-complementary
#1F317F #7F3D1F #617F1F
monochromatic
#070B1D #131E4E #1F317F #2B44B0 #4661D2

Accessibility & contrast

On white

11.64
#1F317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F317F
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F317F#FFFFFF#000000##FFFFFF
##1F317F1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f317f;
/* rgb */ color: rgb(31, 49, 127);
/* oklch */ color: oklch(35.1% 0.133 268.6);
Tailwind
colors: {
  custom: {
    50: '#6a68a5',
    500: '#1f317f',
    950: '#000000',
  },
}
SCSS
$custom: #1f317f;
$custom-light: #6a68a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f317f",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 228.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35099,
    "c": 0.13347,
    "h": 268.6
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#1F317F
secondary
#B29E48
accent
#C644E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F317F

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

Preview Lab → · Contrast checker → · Palette generator →

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