#252874#252874

#252874 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.128 H 275.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#252874
RGBrgb(37, 40, 116)
HSLhsl(238, 52%, 30%)
HSVhsv(238, 68%, 45%)
CMYKcmyk(68.1%, 65.5%, 0%, 54.5%)
CIE-LABlab(20.72, 24.91, -44.15)
CIE-LCHlch(20.72, 50.69, 299.43°)
OKLaboklab(32.66% 0.0112 -0.1272)
OKLCHoklch(32.66% 0.128 275)
XYZxyz(4.6731, 3.1714, 16.8855)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252874 #747125
analogous
#254F74 #252874 #4A2574
triadic
#252874 #742528 #287425
tetradic
#252874 #74254F #747125 #25744A
square
#252874 #74254F #747125 #25744A
split-complementary
#252874 #744A25 #4F7425
monochromatic
#070817 #161846 #252874 #3438A2 #4D52C6

Accessibility & contrast

On white

12.85
#252874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#252874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252874
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252874#FFFFFF#000000##FFFFFF
##2528741.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #252874;
/* rgb */ color: rgb(37, 40, 116);
/* oklch */ color: oklch(32.7% 0.128 275.0);
Tailwind
colors: {
  custom: {
    50: '#6a629d',
    500: '#252874',
    950: '#000000',
  },
}
SCSS
$custom: #252874;
$custom-light: #6a629d;
$custom-dark: #000000;
JSON
{
  "hex": "#252874",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 237.722,
    "s": 51.634,
    "l": 30
  },
  "oklch": {
    "l": 0.32664,
    "c": 0.12774,
    "h": 275
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#252874
secondary
#A7A34E
accent
#D64DDB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #252874

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

Preview Lab → · Contrast checker → · Palette generator →

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