#252287#252287

#252287 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.161 H 274.7°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#252287
RGBrgb(37, 34, 135)
HSLhsl(242, 60%, 33%)
HSVhsv(242, 75%, 53%)
CMYKcmyk(72.6%, 74.8%, 0%, 47.1%)
CIE-LABlab(21.16, 35.64, -55.48)
CIE-LCHlch(21.16, 65.94, 302.71°)
OKLaboklab(33.55% 0.0131 -0.1604)
OKLCHoklch(33.55% 0.161 274.7)
XYZxyz(5.7067, 3.2861, 23.2505)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252287 #848722
analogous
#225187 #252287 #572287
triadic
#252287 #872522 #228725
tetradic
#252287 #872251 #848722 #228757
square
#252287 #872251 #848722 #228757
split-complementary
#252287 #875722 #518722
monochromatic
#0A0925 #181656 #252287 #322EB8 #5450D3

Accessibility & contrast

On white

12.67
#252287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#252287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252287
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252287#FFFFFF#000000##FFFFFF
##2522871.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252287;
/* rgb */ color: rgb(37, 34, 135);
/* oklch */ color: oklch(33.5% 0.161 274.7);
Tailwind
colors: {
  custom: {
    50: '#6f5eab',
    500: '#252287',
    950: '#000000',
  },
}
SCSS
$custom: #252287;
$custom-light: #6f5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#252287",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 241.782,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33548,
    "c": 0.16096,
    "h": 274.7
  },
  "luminance": 0.03287
}

Semantic roles & 50–950 ramp

primary
#252287
secondary
#B3B74E
accent
#E345DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #252287

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

Preview Lab → · Contrast checker → · Palette generator →

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