#25123F#25123F

#25123F is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.082 H 299.5°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#25123F
RGBrgb(37, 18, 63)
HSLhsl(265, 56%, 16%)
HSVhsv(265, 71%, 25%)
CMYKcmyk(41.3%, 71.4%, 0%, 75.3%)
CIE-LABlab(10.44, 21.14, -25.21)
CIE-LCHlch(10.44, 32.90, 309.98°)
OKLaboklab(23.71% 0.0405 -0.0717)
OKLCHoklch(23.71% 0.082 299.5)
XYZxyz(1.8762, 1.1848, 4.8315)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25123F #2C3F12
analogous
#12153F #25123F #3B123F
triadic
#25123F #3F2512 #123F25
tetradic
#25123F #3F1215 #2C3F12 #123F3B
square
#25123F #3F1215 #2C3F12 #123F3B
split-complementary
#25123F #3F3B12 #153F12
monochromatic
#0E0718 #0E0718 #25123F #41206F #5D2D9E

Accessibility & contrast

On white

16.98
#25123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#25123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25123F
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25123F#FFFFFF#000000##FFFFFF
##25123F1.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#021C3E
Tritanopia (blue-blind)
#1F1C26
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #25123f;
/* rgb */ color: rgb(37, 18, 63);
/* oklch */ color: oklch(23.7% 0.082 299.5);
Tailwind
colors: {
  custom: {
    50: '#625174',
    500: '#25123f',
    950: '#000000',
  },
}
SCSS
$custom: #25123f;
$custom-light: #625174;
$custom-dark: #000000;
JSON
{
  "hex": "#25123f",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 265.333,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23708,
    "c": 0.08234,
    "h": 299.5
  },
  "luminance": 0.01185
}

Semantic roles & 50–950 ramp

primary
#25123F
secondary
#5C7835
accent
#DF49A0
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #25123F

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

Preview Lab → · Contrast checker → · Palette generator →

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