#25227A#25227A

#25227A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.144 H 276.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#25227A
RGBrgb(37, 34, 122)
HSLhsl(242, 56%, 31%)
HSVhsv(242, 72%, 48%)
CMYKcmyk(69.7%, 72.1%, 0%, 52.2%)
CIE-LABlab(19.81, 31.06, -49.47)
CIE-LCHlch(19.81, 58.41, 302.12°)
OKLaboklab(32.18% 0.0154 -0.1429)
OKLCHoklch(32.18% 0.144 276.1)
XYZxyz(4.8467, 2.9421, 18.7210)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25227A #777A22
analogous
#224B7A #25227A #51227A
triadic
#25227A #7A2522 #227A25
tetradic
#25227A #7A224B #777A22 #227A51
square
#25227A #7A224B #777A22 #227A51
split-complementary
#25227A #7A5122 #4B7A22
monochromatic
#08071A #16154A #25227A #342FAA #4E4ACD

Accessibility & contrast

On white

13.22
#25227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#25227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25227A
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25227A#FFFFFF#000000##FFFFFF
##25227A1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #25227a;
/* rgb */ color: rgb(37, 34, 122);
/* oklch */ color: oklch(32.2% 0.144 276.1);
Tailwind
colors: {
  custom: {
    50: '#6c5ea1',
    500: '#25227a',
    950: '#000000',
  },
}
SCSS
$custom: #25227a;
$custom-light: #6c5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#25227a",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 242.045,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32181,
    "c": 0.1437,
    "h": 276.1
  },
  "luminance": 0.02943
}

Semantic roles & 50–950 ramp

primary
#25227A
secondary
#A9AD4B
accent
#E048DB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #25227A

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

Preview Lab → · Contrast checker → · Palette generator →

#25227A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva