#252285#252285

#252285 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.158 H 274.9°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#252285
RGBrgb(37, 34, 133)
HSLhsl(242, 59%, 33%)
HSVhsv(242, 74%, 52%)
CMYKcmyk(72.2%, 74.4%, 0%, 47.8%)
CIE-LABlab(20.94, 34.94, -54.57)
CIE-LCHlch(20.94, 64.80, 302.63°)
OKLaboklab(33.33% 0.0135 -0.1578)
OKLCHoklch(33.33% 0.158 274.9)
XYZxyz(5.5672, 3.2303, 22.5159)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252285 #828522
analogous
#225185 #252285 #562285
triadic
#252285 #852522 #228525
tetradic
#252285 #852251 #828522 #228556
square
#252285 #852251 #828522 #228556
split-complementary
#252285 #855622 #518522
monochromatic
#0A0924 #171654 #252285 #332EB6 #534FD2

Accessibility & contrast

On white

12.76
#252285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#252285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252285
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252285#FFFFFF#000000##FFFFFF
##2522851.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #252285;
/* rgb */ color: rgb(37, 34, 133);
/* oklch */ color: oklch(33.3% 0.158 274.9);
Tailwind
colors: {
  custom: {
    50: '#6f5eaa',
    500: '#252285',
    950: '#000000',
  },
}
SCSS
$custom: #252285;
$custom-light: #6f5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#252285",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 241.818,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33334,
    "c": 0.15835,
    "h": 274.9
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#252285
secondary
#B2B64D
accent
#E245DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #252285

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

Preview Lab → · Contrast checker → · Palette generator →

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