#252579#252579

#252579 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.139 H 275.5°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#252579
RGBrgb(37, 37, 121)
HSLhsl(240, 53%, 31%)
HSVhsv(240, 69%, 47%)
CMYKcmyk(69.4%, 69.4%, 0%, 52.5%)
CIE-LABlab(20.43, 28.76, -47.82)
CIE-LCHlch(20.43, 55.80, 301.02°)
OKLaboklab(32.6% 0.0133 -0.138)
OKLCHoklch(32.6% 0.139 275.5)
XYZxyz(4.8746, 3.0965, 18.4263)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252579 #797925
analogous
#254F79 #252579 #4F2579
triadic
#252579 #792525 #257925
tetradic
#252579 #79254F #797925 #25794F
square
#252579 #79254F #797925 #25794F
split-complementary
#252579 #794F25 #4F7925
monochromatic
#08081B #17174A #252579 #3333A8 #4F4FC9

Accessibility & contrast

On white

12.97
#252579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#252579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252579
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252579#FFFFFF#000000##FFFFFF
##2525791.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #252579;
/* rgb */ color: rgb(37, 37, 121);
/* oklch */ color: oklch(32.6% 0.139 275.5);
Tailwind
colors: {
  custom: {
    50: '#6c60a1',
    500: '#252579',
    950: '#000000',
  },
}
SCSS
$custom: #252579;
$custom-light: #6c60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#252579",
  "rgb": {
    "r": 37,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 240,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32595,
    "c": 0.13868,
    "h": 275.5
  },
  "luminance": 0.03097
}

Semantic roles & 50–950 ramp

primary
#252579
secondary
#ABAB4E
accent
#DD4BDD
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08050F
muted
#7A797F

Preview Lab

Preview with #252579

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

Preview Lab → · Contrast checker → · Palette generator →

#252579 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva