#1F319F#1F319F

#1F319F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.177 H 268.5°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#1F319F
RGBrgb(31, 49, 159)
HSLhsl(232, 67%, 37%)
HSVhsv(232, 81%, 62%)
CMYKcmyk(80.5%, 69.2%, 0%, 37.6%)
CIE-LABlab(26.71, 34.30, -61.17)
CIE-LCHlch(26.71, 70.13, 299.28°)
OKLaboklab(38.19% -0.0046 -0.1772)
OKLCHoklch(38.19% 0.177 268.5)
XYZxyz(7.9192, 4.9902, 33.3400)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F319F #9F8D1F
analogous
#1F719F #1F319F #4D1F9F
triadic
#1F319F #9F1F31 #319F1F
tetradic
#1F319F #9F1F71 #9F8D1F #1F9F4D
square
#1F319F #9F1F71 #9F8D1F #1F9F4D
split-complementary
#1F319F #9F4D1F #719F1F
monochromatic
#0B1139 #15216C #1F319F #2941D2 #5A6CDF

Accessibility & contrast

On white

10.51
#1F319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1F319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F319F
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F319F#FFFFFF#000000##FFFFFF
##1F319F1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f319f;
/* rgb */ color: rgb(31, 49, 159);
/* oklch */ color: oklch(38.2% 0.177 268.5);
Tailwind
colors: {
  custom: {
    50: '#7269bc',
    500: '#1f319f',
    950: '#000000',
  },
}
SCSS
$custom: #1f319f;
$custom-light: #7269bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f319f",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 231.563,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38194,
    "c": 0.17722,
    "h": 268.5
  },
  "luminance": 0.04991
}

Semantic roles & 50–950 ramp

primary
#1F319F
secondary
#C3B457
accent
#D23EEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F319F

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

Preview Lab → · Contrast checker → · Palette generator →

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