#252387#252387

#252387 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.160 H 274.5°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#252387
RGBrgb(37, 35, 135)
HSLhsl(241, 59%, 33%)
HSVhsv(241, 74%, 53%)
CMYKcmyk(72.6%, 74.1%, 0%, 47.1%)
CIE-LABlab(21.37, 35.03, -55.12)
CIE-LCHlch(21.37, 65.31, 302.44°)
OKLaboklab(33.7% 0.0125 -0.1594)
OKLCHoklch(33.7% 0.16 274.5)
XYZxyz(5.7357, 3.3441, 23.2602)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252387 #858723
analogous
#235387 #252387 #572387
triadic
#252387 #872523 #238725
tetradic
#252387 #872353 #858723 #238757
square
#252387 #872353 #858723 #238757
split-complementary
#252387 #875723 #538723
monochromatic
#0A0A26 #181656 #252387 #3230B8 #5552D2

Accessibility & contrast

On white

12.58
#252387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#252387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252387
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252387#FFFFFF#000000##FFFFFF
##2523871.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #252387;
/* rgb */ color: rgb(37, 35, 135);
/* oklch */ color: oklch(33.7% 0.160 274.5);
Tailwind
colors: {
  custom: {
    50: '#6f5fab',
    500: '#252387',
    950: '#000000',
  },
}
SCSS
$custom: #252387;
$custom-light: #6f5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#252387",
  "rgb": {
    "r": 37,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 241.2,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33703,
    "c": 0.15987,
    "h": 274.5
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#252387
secondary
#B4B650
accent
#E246DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #252387

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

Preview Lab → · Contrast checker → · Palette generator →

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