#25227E#25227E

#25227E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.149 H 275.7°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#25227E
RGBrgb(37, 34, 126)
HSLhsl(242, 58%, 31%)
HSVhsv(242, 73%, 49%)
CMYKcmyk(70.6%, 73%, 0%, 50.6%)
CIE-LABlab(20.22, 32.48, -51.35)
CIE-LCHlch(20.22, 60.76, 302.31°)
OKLaboklab(32.6% 0.0147 -0.1484)
OKLCHoklch(32.6% 0.149 275.7)
XYZxyz(5.0996, 3.0433, 20.0533)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25227E #7B7E22
analogous
#224D7E #25227E #53227E
triadic
#25227E #7E2522 #227E25
tetradic
#25227E #7E224D #7B7E22 #227E53
square
#25227E #7E224D #7B7E22 #227E53
split-complementary
#25227E #7E5322 #4D7E22
monochromatic
#09081E #17154E #25227E #332FAE #504CCF

Accessibility & contrast

On white

13.05
#25227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#25227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25227E
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25227E#FFFFFF#000000##FFFFFF
##25227E1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #25227e;
/* rgb */ color: rgb(37, 34, 126);
/* oklch */ color: oklch(32.6% 0.149 275.7);
Tailwind
colors: {
  custom: {
    50: '#6d5ea4',
    500: '#25227e',
    950: '#000000',
  },
}
SCSS
$custom: #25227e;
$custom-light: #6d5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#25227e",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 241.957,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32595,
    "c": 0.14909,
    "h": 275.7
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#25227E
secondary
#ADB14B
accent
#E147DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #25227E

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

Preview Lab → · Contrast checker → · Palette generator →

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