#1F1F5F#1F1F5F

#1F1F5F is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.5% C 0.111 H 276.7°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#1F1F5F
RGBrgb(31, 31, 95)
HSLhsl(240, 51%, 25%)
HSVhsv(240, 67%, 37%)
CMYKcmyk(67.4%, 67.4%, 0%, 62.7%)
CIE-LABlab(15.99, 22.21, -38.18)
CIE-LCHlch(15.99, 44.16, 300.19°)
OKLaboklab(28.49% 0.013 -0.11)
OKLCHoklch(28.49% 0.111 276.7)
XYZxyz(3.1199, 2.0973, 11.0646)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1F5F #5F5F1F
analogous
#1F3F5F #1F1F5F #3F1F5F
triadic
#1F1F5F #5F1F1F #1F5F1F
tetradic
#1F1F5F #5F1F3F #5F5F1F #1F5F3F
square
#1F1F5F #5F1F3F #5F5F1F #1F5F3F
split-complementary
#1F1F5F #5F3F1F #3F5F1F
monochromatic
#080817 #101031 #1F1F5F #2E2E8D #3D3DBB

Accessibility & contrast

On white

14.79
#1F1F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1F1F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1F5F
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1F5F#FFFFFF#000000##FFFFFF
##1F1F5F1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1f5f;
/* rgb */ color: rgb(31, 31, 95);
/* oklch */ color: oklch(28.5% 0.111 276.7);
Tailwind
colors: {
  custom: {
    50: '#635a8d',
    500: '#1f1f5f',
    950: '#000000',
  },
}
SCSS
$custom: #1f1f5f;
$custom-light: #635a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1f5f",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 240,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28487,
    "c": 0.11074,
    "h": 276.7
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#1F1F5F
secondary
#949446
accent
#DA4EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F1F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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