#252278#252278

#252278 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.141 H 276.4°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#252278
RGBrgb(37, 34, 120)
HSLhsl(242, 56%, 30%)
HSVhsv(242, 72%, 47%)
CMYKcmyk(69.2%, 71.7%, 0%, 52.9%)
CIE-LABlab(19.61, 30.34, -48.52)
CIE-LCHlch(19.61, 57.23, 302.02°)
OKLaboklab(31.98% 0.0157 -0.1401)
OKLCHoklch(31.98% 0.141 276.4)
XYZxyz(4.7240, 2.8930, 18.0751)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252278 #757822
analogous
#224A78 #252278 #502278
triadic
#252278 #782522 #227825
tetradic
#252278 #78224A #757822 #227850
square
#252278 #78224A #757822 #227850
split-complementary
#252278 #785022 #4A7822
monochromatic
#080719 #161448 #252278 #3430A8 #4E49CB

Accessibility & contrast

On white

13.30
#252278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#252278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252278
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252278#FFFFFF#000000##FFFFFF
##2522781.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #252278;
/* rgb */ color: rgb(37, 34, 120);
/* oklch */ color: oklch(32.0% 0.141 276.4);
Tailwind
colors: {
  custom: {
    50: '#6c5ea0',
    500: '#252278',
    950: '#000000',
  },
}
SCSS
$custom: #252278;
$custom-light: #6c5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#252278",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 242.093,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31976,
    "c": 0.14098,
    "h": 276.4
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#252278
secondary
#A8AB4B
accent
#DF49DA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040F
muted
#7A797E

Preview Lab

Preview with #252278

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

Preview Lab → · Contrast checker → · Palette generator →

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