#252891#252891

#252891 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.167 H 272.7°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#252891
RGBrgb(37, 40, 145)
HSLhsl(238, 59%, 36%)
HSVhsv(238, 74%, 57%)
CMYKcmyk(74.5%, 72.4%, 0%, 43.1%)
CIE-LABlab(23.52, 35.48, -57.82)
CIE-LCHlch(23.52, 67.84, 301.54°)
OKLaboklab(35.55% 0.008 -0.1672)
OKLCHoklch(35.55% 0.167 272.7)
XYZxyz(6.6309, 3.9546, 27.1964)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252891 #918E25
analogous
#255E91 #252891 #582591
triadic
#252891 #912528 #289125
tetradic
#252891 #91255E #918E25 #259158
square
#252891 #91255E #918E25 #259158
split-complementary
#252891 #915825 #5E9125
monochromatic
#0C0D2F #191B60 #252891 #3135C2 #5B5FD5

Accessibility & contrast

On white

11.73
#252891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#252891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252891
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252891#FFFFFF#000000##FFFFFF
##2528911.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #252891;
/* rgb */ color: rgb(37, 40, 145);
/* oklch */ color: oklch(35.6% 0.167 272.7);
Tailwind
colors: {
  custom: {
    50: '#7163b2',
    500: '#252891',
    950: '#000000',
  },
}
SCSS
$custom: #252891;
$custom-light: #7163b2;
$custom-dark: #000000;
JSON
{
  "hex": "#252891",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 238.333,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35553,
    "c": 0.16744,
    "h": 272.7
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#252891
secondary
#BAB758
accent
#DE45E3
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #252891

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

Preview Lab → · Contrast checker → · Palette generator →

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