#25127E#25127E

#25127E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.165 H 278.2°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#25127E
RGBrgb(37, 18, 126)
HSLhsl(251, 75%, 28%)
HSVhsv(251, 86%, 49%)
CMYKcmyk(70.6%, 85.7%, 0%, 50.6%)
CIE-LABlab(17.14, 41.24, -56.43)
CIE-LCHlch(17.14, 69.89, 306.16°)
OKLaboklab(30.43% 0.0236 -0.163)
OKLCHoklch(30.43% 0.165 278.2)
XYZxyz(4.7439, 2.3319, 19.9347)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25127E #6B7E12
analogous
#12357E #25127E #5B127E
triadic
#25127E #7E2512 #127E25
tetradic
#25127E #7E1235 #6B7E12 #127E5B
square
#25127E #7E1235 #6B7E12 #127E5B
split-complementary
#25127E #7E5B12 #357E12
monochromatic
#08041B #150A48 #25127E #351AB4 #4A2AE1

Accessibility & contrast

On white

14.32
#25127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25127E
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25127E#FFFFFF#000000##FFFFFF
##25127E1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #25127e;
/* rgb */ color: rgb(37, 18, 126);
/* oklch */ color: oklch(30.4% 0.165 278.2);
Tailwind
colors: {
  custom: {
    50: '#6f55a5',
    500: '#25127e',
    950: '#000000',
  },
}
SCSS
$custom: #25127e;
$custom-light: #6f55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#25127e",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 250.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30433,
    "c": 0.16468,
    "h": 278.2
  },
  "luminance": 0.02332
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #25127E

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

Preview Lab → · Contrast checker → · Palette generator →

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