#252255#252255

#252255 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.7% C 0.090 H 281.8°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#252255
RGBrgb(37, 34, 85)
HSLhsl(244, 43%, 23%)
HSVhsv(244, 60%, 33%)
CMYKcmyk(56.5%, 60%, 0%, 66.7%)
CIE-LABlab(16.47, 17.61, -30.68)
CIE-LCHlch(16.47, 35.37, 299.85°)
OKLaboklab(28.7% 0.0183 -0.0877)
OKLCHoklch(28.7% 0.09 281.8)
XYZxyz(2.9742, 2.1931, 8.8592)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252255 #525522
analogous
#223855 #252255 #3E2255
triadic
#252255 #552522 #225525
tetradic
#252255 #552238 #525522 #22553E
square
#252255 #552238 #525522 #22553E
split-complementary
#252255 #553E22 #385522
monochromatic
#0A0916 #121129 #252255 #383381 #4B45AC

Accessibility & contrast

On white

14.60
#252255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#252255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252255
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252255#FFFFFF#000000##FFFFFF
##2522551.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032B57
Deuteranopia (green-blind)
#002754
Tritanopia (blue-blind)
#112E37
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #252255;
/* rgb */ color: rgb(37, 34, 85);
/* oklch */ color: oklch(28.7% 0.090 281.8);
Tailwind
colors: {
  custom: {
    50: '#645d85',
    500: '#252255',
    950: '#000000',
  },
}
SCSS
$custom: #252255;
$custom-light: #645d85;
$custom-dark: #000000;
JSON
{
  "hex": "#252255",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 243.529,
    "s": 42.857,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28703,
    "c": 0.08961,
    "h": 281.8
  },
  "luminance": 0.02193
}

Semantic roles & 50–950 ramp

primary
#252255
secondary
#85894A
accent
#D355CB
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #252255

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

Preview Lab → · Contrast checker → · Palette generator →

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