#1F1850#1F1850

#1F1850 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.7% C 0.098 H 282.7°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#1F1850
RGBrgb(31, 24, 80)
HSLhsl(248, 54%, 20%)
HSVhsv(248, 70%, 31%)
CMYKcmyk(61.2%, 70%, 0%, 68.6%)
CIE-LABlab(12.76, 21.48, -33.33)
CIE-LCHlch(12.76, 39.66, 302.80°)
OKLaboklab(25.7% 0.0216 -0.0958)
OKLCHoklch(25.7% 0.098 282.7)
XYZxyz(2.3392, 1.5236, 7.7587)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1850 #495018
analogous
#182D50 #1F1850 #3B1850
triadic
#1F1850 #501F18 #18501F
tetradic
#1F1850 #50182D #495018 #18503B
square
#1F1850 #50182D #495018 #18503B
split-complementary
#1F1850 #503B18 #2D5018
monochromatic
#090718 #0D0A21 #1F1850 #31267F #4334AE

Accessibility & contrast

On white

16.09
#1F1850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#1F1850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1850
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1850#FFFFFF#000000##FFFFFF
##1F18501.0016.091.3016.09
#FFFFFF16.091.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#001F4F
Tritanopia (blue-blind)
#072631
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f1850;
/* rgb */ color: rgb(31, 24, 80);
/* oklch */ color: oklch(25.7% 0.098 282.7);
Tailwind
colors: {
  custom: {
    50: '#615582',
    500: '#1f1850',
    950: '#000000',
  },
}
SCSS
$custom: #1f1850;
$custom-light: #615582;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1850",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 247.5,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25695,
    "c": 0.09818,
    "h": 282.7
  },
  "luminance": 0.01524
}

Semantic roles & 50–950 ramp

primary
#1F1850
secondary
#7E873D
accent
#DD4BCB
background
#F5F4F8
surface
#EAE8EF
border
#C6C4CA
text
#05030A
muted
#79787C

Preview Lab

Preview with #1F1850

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

Preview Lab → · Contrast checker → · Palette generator →

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