#131F81#131F81

#131F81 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.161 H 268.2°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#131F81
RGBrgb(19, 31, 129)
HSLhsl(233, 74%, 29%)
HSVhsv(233, 85%, 51%)
CMYKcmyk(85.3%, 76%, 0%, 49.4%)
CIE-LABlab(18.81, 33.73, -55.60)
CIE-LCHlch(18.81, 65.03, 301.24°)
OKLaboklab(31.41% -0.0049 -0.1611)
OKLCHoklch(31.41% 0.161 268.2)
XYZxyz(4.7196, 2.7028, 21.0376)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#131F81 #817513
analogous
#135681 #131F81 #3E1381
triadic
#131F81 #81131F #1F8113
tetradic
#131F81 #811356 #817513 #13813E
square
#131F81 #811356 #817513 #13813E
split-complementary
#131F81 #813E13 #568113
monochromatic
#04061B #0B124C #131F81 #1B2CB6 #2E42E0

Accessibility & contrast

On white

13.63
#131F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#131F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #131F81
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##131F81#FFFFFF#000000##FFFFFF
##131F811.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #131f81;
/* rgb */ color: rgb(19, 31, 129);
/* oklch */ color: oklch(31.4% 0.161 268.2);
Tailwind
colors: {
  custom: {
    50: '#685ba7',
    500: '#131f81',
    950: '#000000',
  },
}
SCSS
$custom: #131f81;
$custom-light: #685ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#131f81",
  "rgb": {
    "r": 19,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 233.455,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31405,
    "c": 0.16122,
    "h": 268.2
  },
  "luminance": 0.02703
}

Semantic roles & 50–950 ramp

primary
#131F81
secondary
#B6A93A
accent
#DD37F1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070410
muted
#7A797F

Preview Lab

Preview with #131F81

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

Preview Lab → · Contrast checker → · Palette generator →

#131F81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva