#25258F#25258F

#25258F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.168 H 273.4°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#25258F
RGBrgb(37, 37, 143)
HSLhsl(240, 59%, 35%)
HSVhsv(240, 74%, 56%)
CMYKcmyk(74.1%, 74.1%, 0%, 43.9%)
CIE-LABlab(22.65, 36.62, -58.01)
CIE-LCHlch(22.65, 68.60, 302.26°)
OKLaboklab(34.87% 0.01 -0.1678)
OKLCHoklch(34.87% 0.168 273.4)
XYZxyz(6.3808, 3.6990, 26.3590)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25258F #8F8F25
analogous
#255A8F #25258F #5A258F
triadic
#25258F #8F2525 #258F25
tetradic
#25258F #8F255A #8F8F25 #258F5A
square
#25258F #8F255A #8F8F25 #258F5A
split-complementary
#25258F #8F5A25 #5A8F25
monochromatic
#0C0C2E #18185E #25258F #3232C0 #5A5AD4

Accessibility & contrast

On white

12.07
#25258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#25258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25258F
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25258F#FFFFFF#000000##FFFFFF
##25258F1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #25258f;
/* rgb */ color: rgb(37, 37, 143);
/* oklch */ color: oklch(34.9% 0.168 273.4);
Tailwind
colors: {
  custom: {
    50: '#7161b1',
    500: '#25258f',
    950: '#000000',
  },
}
SCSS
$custom: #25258f;
$custom-light: #7161b1;
$custom-dark: #000000;
JSON
{
  "hex": "#25258f",
  "rgb": {
    "r": 37,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34868,
    "c": 0.16811,
    "h": 273.4
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#25258F
secondary
#B9B957
accent
#E246E2
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #25258F

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

Preview Lab → · Contrast checker → · Palette generator →

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