#252280#252280

#252280 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.152 H 275.4°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#252280
RGBrgb(37, 34, 128)
HSLhsl(242, 58%, 32%)
HSVhsv(242, 73%, 50%)
CMYKcmyk(71.1%, 73.4%, 0%, 49.8%)
CIE-LABlab(20.42, 33.19, -52.28)
CIE-LCHlch(20.42, 61.92, 302.41°)
OKLaboklab(32.81% 0.0144 -0.1511)
OKLCHoklch(32.81% 0.152 275.4)
XYZxyz(5.2300, 3.0954, 20.7397)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252280 #7D8022
analogous
#224E80 #252280 #542280
triadic
#252280 #802522 #228025
tetradic
#252280 #80224E #7D8022 #228054
square
#252280 #80224E #7D8022 #228054
split-complementary
#252280 #805422 #4E8022
monochromatic
#09081F #171550 #252280 #332FB0 #514DD0

Accessibility & contrast

On white

12.97
#252280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#252280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252280
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252280#FFFFFF#000000##FFFFFF
##2522801.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #252280;
/* rgb */ color: rgb(37, 34, 128);
/* oklch */ color: oklch(32.8% 0.152 275.4);
Tailwind
colors: {
  custom: {
    50: '#6e5ea6',
    500: '#252280',
    950: '#000000',
  },
}
SCSS
$custom: #252280;
$custom-light: #6e5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#252280",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 241.915,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32805,
    "c": 0.15175,
    "h": 275.4
  },
  "luminance": 0.03096
}

Semantic roles & 50–950 ramp

primary
#252280
secondary
#AFB24B
accent
#E147DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #252280

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

Preview Lab → · Contrast checker → · Palette generator →

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