#252997#252997

#252997 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.174 H 272.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#252997
RGBrgb(37, 41, 151)
HSLhsl(238, 61%, 37%)
HSVhsv(238, 75%, 59%)
CMYKcmyk(75.5%, 72.8%, 0%, 40.8%)
CIE-LABlab(24.36, 36.99, -60.13)
CIE-LCHlch(24.36, 70.60, 301.60°)
OKLaboklab(36.34% 0.0065 -0.174)
OKLCHoklch(36.34% 0.174 272.2)
XYZxyz(7.1399, 4.2128, 29.7090)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252997 #979325
analogous
#256297 #252997 #5A2597
triadic
#252997 #972529 #299725
tetradic
#252997 #972562 #979325 #25975A
square
#252997 #972562 #979325 #25975A
split-complementary
#252997 #975A25 #629725
monochromatic
#0D0E35 #191C66 #252997 #3136C8 #5F63D8

Accessibility & contrast

On white

11.40
#252997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#252997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252997
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252997#FFFFFF#000000##FFFFFF
##2529971.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #252997;
/* rgb */ color: rgb(37, 41, 151);
/* oklch */ color: oklch(36.3% 0.174 272.2);
Tailwind
colors: {
  custom: {
    50: '#7364b7',
    500: '#252997',
    950: '#000000',
  },
}
SCSS
$custom: #252997;
$custom-light: #7364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252997",
  "rgb": {
    "r": 37,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 237.895,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36343,
    "c": 0.17412,
    "h": 272.2
  },
  "luminance": 0.04214
}

Semantic roles & 50–950 ramp

primary
#252997
secondary
#BDB95B
accent
#DE44E4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #252997

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

Preview Lab → · Contrast checker → · Palette generator →

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