#1F125A#1F125A

#1F125A is a dark, vivid violet. Relative luminance 0.015; OKLCH L 25.7% C 0.120 H 282.1°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#1F125A
RGBrgb(31, 18, 90)
HSLhsl(251, 67%, 21%)
HSVhsv(251, 80%, 35%)
CMYKcmyk(65.6%, 80%, 0%, 64.7%)
CIE-LABlab(12.36, 28.90, -40.77)
CIE-LCHlch(12.36, 49.98, 305.33°)
OKLaboklab(25.72% 0.0253 -0.1176)
OKLCHoklch(25.72% 0.12 282.1)
XYZxyz(2.6263, 1.4619, 9.8147)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F125A #4D5A12
analogous
#12295A #1F125A #43125A
triadic
#1F125A #5A1F12 #125A1F
tetradic
#1F125A #5A1229 #4D5A12 #125A43
square
#1F125A #5A1229 #4D5A12 #125A43
split-complementary
#1F125A #5A4312 #295A12
monochromatic
#09051A #0D0827 #1F125A #311C8D #4226C0

Accessibility & contrast

On white

16.25
#1F125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#1F125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F125A
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F125A#FFFFFF#000000##FFFFFF
##1F125A1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#001E59
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1f125a;
/* rgb */ color: rgb(31, 18, 90);
/* oklch */ color: oklch(25.7% 0.120 282.1);
Tailwind
colors: {
  custom: {
    50: '#645189',
    500: '#1f125a',
    950: '#000000',
  },
}
SCSS
$custom: #1f125a;
$custom-light: #645189;
$custom-dark: #000000;
JSON
{
  "hex": "#1f125a",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 250.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25724,
    "c": 0.12025,
    "h": 282.1
  },
  "luminance": 0.01462
}

Semantic roles & 50–950 ramp

primary
#1F125A
secondary
#829335
accent
#EA3ECB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F125A

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

Preview Lab → · Contrast checker → · Palette generator →

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