#252889#252889

#252889 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.157 H 273.3°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#252889
RGBrgb(37, 40, 137)
HSLhsl(238, 57%, 34%)
HSVhsv(238, 73%, 54%)
CMYKcmyk(73%, 70.8%, 0%, 46.3%)
CIE-LABlab(22.71, 32.62, -54.17)
CIE-LCHlch(22.71, 63.24, 301.06°)
OKLaboklab(34.73% 0.0091 -0.1566)
OKLCHoklch(34.73% 0.157 273.3)
XYZxyz(6.0356, 3.7164, 24.0613)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252889 #898625
analogous
#255A89 #252889 #542589
triadic
#252889 #892528 #288925
tetradic
#252889 #89255A #898625 #258954
square
#252889 #89255A #898625 #258954
split-complementary
#252889 #895425 #5A8925
monochromatic
#0B0C29 #181A59 #252889 #3236B9 #575BD2

Accessibility & contrast

On white

12.05
#252889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#252889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252889
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252889#FFFFFF#000000##FFFFFF
##2528891.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252889;
/* rgb */ color: rgb(37, 40, 137);
/* oklch */ color: oklch(34.7% 0.157 273.3);
Tailwind
colors: {
  custom: {
    50: '#6f62ac',
    500: '#252889',
    950: '#000000',
  },
}
SCSS
$custom: #252889;
$custom-light: #6f62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#252889",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 238.2,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34726,
    "c": 0.15688,
    "h": 273.3
  },
  "luminance": 0.03717
}

Semantic roles & 50–950 ramp

primary
#252889
secondary
#B6B354
accent
#DC47E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252889

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

Preview Lab → · Contrast checker → · Palette generator →

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