#1F125E#1F125E

#1F125E is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.126 H 281.1°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#1F125E
RGBrgb(31, 18, 94)
HSLhsl(250, 68%, 22%)
HSVhsv(250, 81%, 37%)
CMYKcmyk(67%, 80.9%, 0%, 63.1%)
CIE-LABlab(12.81, 30.26, -42.72)
CIE-LCHlch(12.81, 52.36, 305.31°)
OKLaboklab(26.17% 0.0242 -0.1233)
OKLCHoklch(26.17% 0.126 281.1)
XYZxyz(2.8011, 1.5319, 10.7356)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F125E #515E12
analogous
#122B5E #1F125E #45125E
triadic
#1F125E #5E1F12 #125E1F
tetradic
#1F125E #5E122B #515E12 #125E45
square
#1F125E #5E122B #515E12 #125E45
split-complementary
#1F125E #5E4512 #2B5E12
monochromatic
#08051A #0E082B #1F125E #301C91 #4126C5

Accessibility & contrast

On white

16.07
#1F125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F125E
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F125E#FFFFFF#000000##FFFFFF
##1F125E1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#001E5D
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f125e;
/* rgb */ color: rgb(31, 18, 94);
/* oklch */ color: oklch(26.2% 0.126 281.1);
Tailwind
colors: {
  custom: {
    50: '#64528d',
    500: '#1f125e',
    950: '#000000',
  },
}
SCSS
$custom: #1f125e;
$custom-light: #64528d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f125e",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 250.263,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26172,
    "c": 0.12562,
    "h": 281.1
  },
  "luminance": 0.01532
}

Semantic roles & 50–950 ramp

primary
#1F125E
secondary
#869635
accent
#EB3DCD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F125E

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

Preview Lab → · Contrast checker → · Palette generator →

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