#252298#252298

#252298 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.182 H 273.0°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#252298
RGBrgb(37, 34, 152)
HSLhsl(242, 63%, 36%)
HSVhsv(242, 78%, 60%)
CMYKcmyk(75.7%, 77.6%, 0%, 40.4%)
CIE-LABlab(23.01, 41.44, -62.97)
CIE-LCHlch(23.01, 75.39, 303.34°)
OKLaboklab(35.42% 0.0097 -0.1822)
OKLCHoklch(35.42% 0.182 273)
XYZxyz(7.0006, 3.8036, 30.0649)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252298 #959822
analogous
#225A98 #252298 #602298
triadic
#252298 #982522 #229825
tetradic
#252298 #98225A #959822 #229860
square
#252298 #98225A #959822 #229860
split-complementary
#252298 #986022 #5A9822
monochromatic
#0D0C34 #191766 #252298 #312DCA #5E5ADA

Accessibility & contrast

On white

11.93
#252298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#252298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252298
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252298#FFFFFF#000000##FFFFFF
##2522981.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252298;
/* rgb */ color: rgb(37, 34, 152);
/* oklch */ color: oklch(35.4% 0.182 273.0);
Tailwind
colors: {
  custom: {
    50: '#745fb8',
    500: '#252298',
    950: '#000000',
  },
}
SCSS
$custom: #252298;
$custom-light: #745fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#252298",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 241.525,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35415,
    "c": 0.18249,
    "h": 273
  },
  "luminance": 0.03804
}

Semantic roles & 50–950 ramp

primary
#252298
secondary
#BCBE57
accent
#E641E2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #252298

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

Preview Lab → · Contrast checker → · Palette generator →

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