#1F125F#1F125F

#1F125F is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.3% C 0.127 H 280.8°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#1F125F
RGBrgb(31, 18, 95)
HSLhsl(250, 68%, 22%)
HSVhsv(250, 81%, 37%)
CMYKcmyk(67.4%, 81.1%, 0%, 62.7%)
CIE-LABlab(12.92, 30.61, -43.21)
CIE-LCHlch(12.92, 52.95, 305.31°)
OKLaboklab(26.28% 0.0239 -0.1247)
OKLCHoklch(26.28% 0.127 280.8)
XYZxyz(2.8463, 1.5499, 10.9734)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F125F #525F12
analogous
#122C5F #1F125F #46125F
triadic
#1F125F #5F1F12 #125F1F
tetradic
#1F125F #5F122C #525F12 #125F46
square
#1F125F #5F122C #525F12 #125F46
split-complementary
#1F125F #5F4612 #2C5F12
monochromatic
#08051A #0E082C #1F125F #301C92 #4125C6

Accessibility & contrast

On white

16.03
#1F125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#1F125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F125F
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F125F#FFFFFF#000000##FFFFFF
##1F125F1.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001E5E
Tritanopia (blue-blind)
#002838
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f125f;
/* rgb */ color: rgb(31, 18, 95);
/* oklch */ color: oklch(26.3% 0.127 280.8);
Tailwind
colors: {
  custom: {
    50: '#65528d',
    500: '#1f125f',
    950: '#000000',
  },
}
SCSS
$custom: #1f125f;
$custom-light: #65528d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f125f",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 250.13,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26285,
    "c": 0.12695,
    "h": 280.8
  },
  "luminance": 0.0155
}

Semantic roles & 50–950 ramp

primary
#1F125F
secondary
#879736
accent
#EB3DCE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F125F

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

Preview Lab → · Contrast checker → · Palette generator →

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