#131F5F#131F5F

#131F5F is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.7% C 0.114 H 269.1°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#131F5F
RGBrgb(19, 31, 95)
HSLhsl(231, 67%, 22%)
HSVhsv(231, 80%, 37%)
CMYKcmyk(80%, 67.4%, 0%, 62.7%)
CIE-LABlab(15.19, 20.40, -39.51)
CIE-LCHlch(15.19, 44.47, 297.31°)
OKLaboklab(27.69% -0.0017 -0.1142)
OKLCHoklch(27.69% 0.114 269.1)
XYZxyz(2.8234, 1.9443, 11.0507)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#131F5F #5F5313
analogous
#13455F #131F5F #2D135F
triadic
#131F5F #5F131F #1F5F13
tetradic
#131F5F #5F1345 #5F5313 #135F2D
square
#131F5F #5F1345 #5F5313 #135F2D
split-complementary
#131F5F #5F2D13 #455F13
monochromatic
#05081A #090E2C #131F5F #1D3092 #2740C5

Accessibility & contrast

On white

15.12
#131F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#131F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #131F5F
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##131F5F#FFFFFF#000000##FFFFFF
##131F5F1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#00303B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #131f5f;
/* rgb */ color: rgb(19, 31, 95);
/* oklch */ color: oklch(27.7% 0.114 269.1);
Tailwind
colors: {
  custom: {
    50: '#5e5a8d',
    500: '#131f5f',
    950: '#000000',
  },
}
SCSS
$custom: #131f5f;
$custom-light: #5e5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#131f5f",
  "rgb": {
    "r": 19,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 230.526,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2769,
    "c": 0.11422,
    "h": 269.1
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#131F5F
secondary
#978837
accent
#CF3EEA
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #131F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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