#25226F#25226F

#25226F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.128 H 277.6°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#25226F
RGBrgb(37, 34, 111)
HSLhsl(242, 53%, 28%)
HSVhsv(242, 69%, 44%)
CMYKcmyk(66.7%, 69.4%, 0%, 56.5%)
CIE-LABlab(18.73, 27.10, -44.16)
CIE-LCHlch(18.73, 51.82, 301.53°)
OKLaboklab(31.07% 0.0169 -0.1273)
OKLCHoklch(31.07% 0.128 277.6)
XYZxyz(4.2033, 2.6847, 15.3325)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25226F #6C6F22
analogous
#22456F #25226F #4B226F
triadic
#25226F #6F2522 #226F25
tetradic
#25226F #6F2245 #6C6F22 #226F4B
square
#25226F #6F2245 #6C6F22 #226F4B
split-complementary
#25226F #6F4B22 #456F22
monochromatic
#080717 #151440 #25226F #35309E #4A45C6

Accessibility & contrast

On white

13.66
#25226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#25226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25226F
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25226F#FFFFFF#000000##FFFFFF
##25226F1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #25226f;
/* rgb */ color: rgb(37, 34, 111);
/* oklch */ color: oklch(31.1% 0.128 277.6);
Tailwind
colors: {
  custom: {
    50: '#6a5d99',
    500: '#25226f',
    950: '#000000',
  },
}
SCSS
$custom: #25226f;
$custom-light: #6a5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#25226f",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 242.338,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31074,
    "c": 0.12846,
    "h": 277.6
  },
  "luminance": 0.02685
}

Semantic roles & 50–950 ramp

primary
#25226F
secondary
#9FA24A
accent
#DD4BD7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #25226F

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

Preview Lab → · Contrast checker → · Palette generator →

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