#252297#252297

#252297 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.181 H 273.1°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#252297
RGBrgb(37, 34, 151)
HSLhsl(242, 63%, 36%)
HSVhsv(242, 77%, 59%)
CMYKcmyk(75.5%, 77.5%, 0%, 40.8%)
CIE-LABlab(22.90, 41.10, -62.54)
CIE-LCHlch(22.90, 74.84, 303.31°)
OKLaboklab(35.3% 0.0099 -0.181)
OKLCHoklch(35.3% 0.181 273.1)
XYZxyz(6.9190, 3.7710, 29.6354)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252297 #949722
analogous
#225A97 #252297 #602297
triadic
#252297 #972522 #229725
tetradic
#252297 #97225A #949722 #229760
square
#252297 #97225A #949722 #229760
split-complementary
#252297 #976022 #5A9722
monochromatic
#0D0C33 #191765 #252297 #312DC9 #5D5ADA

Accessibility & contrast

On white

11.97
#252297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#252297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252297
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252297#FFFFFF#000000##FFFFFF
##2522971.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252297;
/* rgb */ color: rgb(37, 34, 151);
/* oklch */ color: oklch(35.3% 0.181 273.1);
Tailwind
colors: {
  custom: {
    50: '#735fb7',
    500: '#252297',
    950: '#000000',
  },
}
SCSS
$custom: #252297;
$custom-light: #735fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#252297",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 241.538,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35303,
    "c": 0.18125,
    "h": 273.1
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#252297
secondary
#BBBE57
accent
#E642E2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #252297

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

Preview Lab → · Contrast checker → · Palette generator →

#252297 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva