#25227D#25227D

#25227D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.148 H 275.8°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#25227D
RGBrgb(37, 34, 125)
HSLhsl(242, 57%, 31%)
HSVhsv(242, 73%, 49%)
CMYKcmyk(70.4%, 72.8%, 0%, 51%)
CIE-LABlab(20.11, 32.12, -50.88)
CIE-LCHlch(20.11, 60.17, 302.27°)
OKLaboklab(32.49% 0.0149 -0.147)
OKLCHoklch(32.49% 0.148 275.8)
XYZxyz(5.0354, 3.0176, 19.7151)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25227D #7A7D22
analogous
#224C7D #25227D #52227D
triadic
#25227D #7D2522 #227D25
tetradic
#25227D #7D224C #7A7D22 #227D52
square
#25227D #7D224C #7A7D22 #227D52
split-complementary
#25227D #7D5222 #4C7D22
monochromatic
#09081D #17154D #25227D #332FAD #504BCE

Accessibility & contrast

On white

13.10
#25227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#25227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25227D
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25227D#FFFFFF#000000##FFFFFF
##25227D1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #25227d;
/* rgb */ color: rgb(37, 34, 125);
/* oklch */ color: oklch(32.5% 0.148 275.8);
Tailwind
colors: {
  custom: {
    50: '#6d5ea4',
    500: '#25227d',
    950: '#000000',
  },
}
SCSS
$custom: #25227d;
$custom-light: #6d5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#25227d",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 241.978,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32491,
    "c": 0.14774,
    "h": 275.8
  },
  "luminance": 0.03018
}

Semantic roles & 50–950 ramp

primary
#25227D
secondary
#ACB04B
accent
#E047DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #25227D

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

Preview Lab → · Contrast checker → · Palette generator →

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