#252880#252880

#252880 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.145 H 274.0°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#252880
RGBrgb(37, 40, 128)
HSLhsl(238, 55%, 32%)
HSVhsv(238, 71%, 50%)
CMYKcmyk(71.1%, 68.8%, 0%, 49.8%)
CIE-LABlab(21.83, 29.35, -49.96)
CIE-LCHlch(21.83, 57.94, 300.43°)
OKLaboklab(33.82% 0.0102 -0.1443)
OKLCHoklch(33.82% 0.145 274)
XYZxyz(5.4167, 3.4689, 20.8020)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252880 #807D25
analogous
#255680 #252880 #502580
triadic
#252880 #802528 #288025
tetradic
#252880 #802556 #807D25 #258050
square
#252880 #802556 #807D25 #258050
split-complementary
#252880 #805025 #568025
monochromatic
#0A0A21 #171951 #252880 #3337AF #5256CD

Accessibility & contrast

On white

12.40
#252880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#252880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252880
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252880#FFFFFF#000000##FFFFFF
##2528801.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #252880;
/* rgb */ color: rgb(37, 40, 128);
/* oklch */ color: oklch(33.8% 0.145 274.0);
Tailwind
colors: {
  custom: {
    50: '#6d62a6',
    500: '#252880',
    950: '#000000',
  },
}
SCSS
$custom: #252880;
$custom-light: #6d62a6;
$custom-dark: #000000;
JSON
{
  "hex": "#252880",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 128
  },
  "hsl": {
    "h": 238.022,
    "s": 55.152,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33821,
    "c": 0.14466,
    "h": 274
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#252880
secondary
#B1AE50
accent
#DA49DE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #252880

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

Preview Lab → · Contrast checker → · Palette generator →

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