#25227F#25227F

#25227F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.150 H 275.6°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#25227F
RGBrgb(37, 34, 127)
HSLhsl(242, 58%, 32%)
HSVhsv(242, 73%, 50%)
CMYKcmyk(70.9%, 73.2%, 0%, 50.2%)
CIE-LABlab(20.32, 32.83, -51.81)
CIE-LCHlch(20.32, 61.34, 302.36°)
OKLaboklab(32.7% 0.0146 -0.1497)
OKLCHoklch(32.7% 0.15 275.6)
XYZxyz(5.1645, 3.0692, 20.3948)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25227F #7C7F22
analogous
#224E7F #25227F #54227F
triadic
#25227F #7F2522 #227F25
tetradic
#25227F #7F224E #7C7F22 #227F54
square
#25227F #7F224E #7C7F22 #227F54
split-complementary
#25227F #7F5422 #4E7F22
monochromatic
#09081E #17154F #25227F #332FAF #504CCF

Accessibility & contrast

On white

13.01
#25227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25227F
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25227F#FFFFFF#000000##FFFFFF
##25227F1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #25227f;
/* rgb */ color: rgb(37, 34, 127);
/* oklch */ color: oklch(32.7% 0.150 275.6);
Tailwind
colors: {
  custom: {
    50: '#6d5ea5',
    500: '#25227f',
    950: '#000000',
  },
}
SCSS
$custom: #25227f;
$custom-light: #6d5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#25227f",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 241.935,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.327,
    "c": 0.15043,
    "h": 275.6
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #25227F

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

Preview Lab → · Contrast checker → · Palette generator →

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