#1F124E#1F124E

#1F124E is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.104 H 285.8°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#1F124E
RGBrgb(31, 18, 78)
HSLhsl(253, 63%, 19%)
HSVhsv(253, 77%, 31%)
CMYKcmyk(60.3%, 76.9%, 0%, 69.4%)
CIE-LABlab(11.09, 24.77, -34.68)
CIE-LCHlch(11.09, 42.62, 305.53°)
OKLaboklab(24.43% 0.0282 -0.0997)
OKLCHoklch(24.43% 0.104 285.8)
XYZxyz(2.1561, 1.2739, 7.3385)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F124E #414E12
analogous
#12234E #1F124E #3D124E
triadic
#1F124E #4E1F12 #124E1F
tetradic
#1F124E #4E1223 #414E12 #124E3D
square
#1F124E #4E1223 #414E12 #124E3D
split-complementary
#1F124E #4E3D12 #234E12
monochromatic
#0A0619 #0B071C #1F124E #331D80 #4729B1

Accessibility & contrast

On white

16.74
#1F124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#1F124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F124E
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F124E#FFFFFF#000000##FFFFFF
##1F124E1.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#001C4D
Tritanopia (blue-blind)
#0A222E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f124e;
/* rgb */ color: rgb(31, 18, 78);
/* oklch */ color: oklch(24.4% 0.104 285.8);
Tailwind
colors: {
  custom: {
    50: '#615180',
    500: '#1f124e',
    950: '#000000',
  },
}
SCSS
$custom: #1f124e;
$custom-light: #615180;
$custom-dark: #000000;
JSON
{
  "hex": "#1f124e",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 253,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24434,
    "c": 0.10365,
    "h": 285.8
  },
  "luminance": 0.01274
}

Semantic roles & 50–950 ramp

primary
#1F124E
secondary
#758735
accent
#E642C2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #1F124E

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

Preview Lab → · Contrast checker → · Palette generator →

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