#252572#252572

#252572 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.129 H 276.2°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#252572
RGBrgb(37, 37, 114)
HSLhsl(240, 51%, 30%)
HSVhsv(240, 68%, 45%)
CMYKcmyk(67.5%, 67.5%, 0%, 55.3%)
CIE-LABlab(19.77, 26.19, -44.42)
CIE-LCHlch(19.77, 51.56, 300.53°)
OKLaboklab(31.91% 0.014 -0.1281)
OKLCHoklch(31.91% 0.129 276.2)
XYZxyz(4.4608, 2.9310, 16.2470)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252572 #727225
analogous
#254C72 #252572 #4C2572
triadic
#252572 #722525 #257225
tetradic
#252572 #72254C #727225 #25724C
square
#252572 #72254C #727225 #25724C
split-complementary
#252572 #724C25 #4C7225
monochromatic
#070717 #161644 #252572 #3434A0 #4C4CC5

Accessibility & contrast

On white

13.24
#252572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#252572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252572
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252572#FFFFFF#000000##FFFFFF
##2525721.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #252572;
/* rgb */ color: rgb(37, 37, 114);
/* oklch */ color: oklch(31.9% 0.129 276.2);
Tailwind
colors: {
  custom: {
    50: '#6a609b',
    500: '#252572',
    950: '#000000',
  },
}
SCSS
$custom: #252572;
$custom-light: #6a609b;
$custom-dark: #000000;
JSON
{
  "hex": "#252572",
  "rgb": {
    "r": 37,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 240,
    "s": 50.993,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31911,
    "c": 0.12882,
    "h": 276.2
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#252572
secondary
#A5A54E
accent
#DA4DDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #252572

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

Preview Lab → · Contrast checker → · Palette generator →

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