#25227B#25227B

#25227B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.145 H 276.0°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#25227B
RGBrgb(37, 34, 123)
HSLhsl(242, 57%, 31%)
HSVhsv(242, 72%, 48%)
CMYKcmyk(69.9%, 72.4%, 0%, 51.8%)
CIE-LABlab(19.91, 31.41, -49.94)
CIE-LCHlch(19.91, 59.00, 302.17°)
OKLaboklab(32.28% 0.0152 -0.1442)
OKLCHoklch(32.28% 0.145 276)
XYZxyz(4.9090, 2.9670, 19.0490)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25227B #787B22
analogous
#224B7B #25227B #51227B
triadic
#25227B #7B2522 #227B25
tetradic
#25227B #7B224B #787B22 #227B51
square
#25227B #7B224B #787B22 #227B51
split-complementary
#25227B #7B5122 #4B7B22
monochromatic
#08071B #17154B #25227B #332FAB #4F4ACD

Accessibility & contrast

On white

13.18
#25227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25227B
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25227B#FFFFFF#000000##FFFFFF
##25227B1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #25227b;
/* rgb */ color: rgb(37, 34, 123);
/* oklch */ color: oklch(32.3% 0.145 276.0);
Tailwind
colors: {
  custom: {
    50: '#6c5ea2',
    500: '#25227b',
    950: '#000000',
  },
}
SCSS
$custom: #25227b;
$custom-light: #6c5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#25227b",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 242.022,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32284,
    "c": 0.14505,
    "h": 276
  },
  "luminance": 0.02967
}

Semantic roles & 50–950 ramp

primary
#25227B
secondary
#AAAE4B
accent
#E048DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #25227B

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

Preview Lab → · Contrast checker → · Palette generator →

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