#252789#252789

#252789 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.158 H 273.5°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#252789
RGBrgb(37, 39, 137)
HSLhsl(239, 57%, 34%)
HSVhsv(239, 73%, 54%)
CMYKcmyk(73%, 71.5%, 0%, 46.3%)
CIE-LABlab(22.48, 33.26, -54.55)
CIE-LCHlch(22.48, 63.89, 301.37°)
OKLaboklab(34.56% 0.0098 -0.1577)
OKLCHoklch(34.56% 0.158 273.5)
XYZxyz(6.0023, 3.6499, 24.0502)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252789 #898725
analogous
#255989 #252789 #552589
triadic
#252789 #892527 #278925
tetradic
#252789 #892559 #898725 #258955
square
#252789 #892559 #898725 #258955
split-complementary
#252789 #895525 #598925
monochromatic
#0B0C29 #181959 #252789 #3235B9 #5759D2

Accessibility & contrast

On white

12.14
#252789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#252789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252789
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252789#FFFFFF#000000##FFFFFF
##2527891.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252789;
/* rgb */ color: rgb(37, 39, 137);
/* oklch */ color: oklch(34.6% 0.158 273.5);
Tailwind
colors: {
  custom: {
    50: '#6f62ac',
    500: '#252789',
    950: '#000000',
  },
}
SCSS
$custom: #252789;
$custom-light: #6f62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#252789",
  "rgb": {
    "r": 37,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 238.8,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34558,
    "c": 0.15803,
    "h": 273.5
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#252789
secondary
#B6B454
accent
#DE47E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #252789

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

Preview Lab → · Contrast checker → · Palette generator →

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