#131F7F#131F7F

#131F7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.159 H 268.3°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#131F7F
RGBrgb(19, 31, 127)
HSLhsl(233, 74%, 29%)
HSVhsv(233, 85%, 50%)
CMYKcmyk(85%, 75.6%, 0%, 50.2%)
CIE-LABlab(18.58, 32.98, -54.71)
CIE-LCHlch(18.58, 63.88, 301.08°)
OKLaboklab(31.18% -0.0047 -0.1585)
OKLCHoklch(31.18% 0.159 268.3)
XYZxyz(4.5880, 2.6502, 20.3443)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#131F7F #7F7313
analogous
#13557F #131F7F #3D137F
triadic
#131F7F #7F131F #1F7F13
tetradic
#131F7F #7F1355 #7F7313 #137F3D
square
#131F7F #7F1355 #7F7313 #137F3D
split-complementary
#131F7F #7F3D13 #557F13
monochromatic
#04061B #0B124A #131F7F #1B2CB4 #2D41E0

Accessibility & contrast

On white

13.72
#131F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#131F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #131F7F
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##131F7F#FFFFFF#000000##FFFFFF
##131F7F1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #131f7f;
/* rgb */ color: rgb(19, 31, 127);
/* oklch */ color: oklch(31.2% 0.159 268.3);
Tailwind
colors: {
  custom: {
    50: '#685ba5',
    500: '#131f7f',
    950: '#000000',
  },
}
SCSS
$custom: #131f7f;
$custom-light: #685ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#131f7f",
  "rgb": {
    "r": 19,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 233.333,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31175,
    "c": 0.15862,
    "h": 268.3
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#131F7F
secondary
#B4A739
accent
#DC37F1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #131F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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