#25127F#25127F

#25127F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.166 H 278.1°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#25127F
RGBrgb(37, 18, 127)
HSLhsl(250, 75%, 28%)
HSVhsv(250, 86%, 50%)
CMYKcmyk(70.9%, 85.8%, 0%, 50.2%)
CIE-LABlab(17.26, 41.55, -56.86)
CIE-LCHlch(17.26, 70.43, 306.16°)
OKLaboklab(30.55% 0.0233 -0.1642)
OKLCHoklch(30.55% 0.166 278.1)
XYZxyz(4.8088, 2.3578, 20.2762)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25127F #6C7F12
analogous
#12357F #25127F #5B127F
triadic
#25127F #7F2512 #127F25
tetradic
#25127F #7F1235 #6C7F12 #127F5B
square
#25127F #7F1235 #6C7F12 #127F5B
split-complementary
#25127F #7F5B12 #357F12
monochromatic
#08041B #150A49 #25127F #351AB5 #4A2BE1

Accessibility & contrast

On white

14.27
#25127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#25127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25127F
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25127F#FFFFFF#000000##FFFFFF
##25127F1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #25127f;
/* rgb */ color: rgb(37, 18, 127);
/* oklch */ color: oklch(30.6% 0.166 278.1);
Tailwind
colors: {
  custom: {
    50: '#6f55a5',
    500: '#25127f',
    950: '#000000',
  },
}
SCSS
$custom: #25127f;
$custom-light: #6f55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#25127f",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 250.459,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30553,
    "c": 0.16588,
    "h": 278.1
  },
  "luminance": 0.02358
}

Semantic roles & 50–950 ramp

primary
#25127F
secondary
#9FB538
accent
#F236D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25127F

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

Preview Lab → · Contrast checker → · Palette generator →

#25127F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva