#252C97#252C97

#252C97 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.171 H 271.6°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#252C97
RGBrgb(37, 44, 151)
HSLhsl(236, 61%, 37%)
HSVhsv(236, 75%, 59%)
CMYKcmyk(75.5%, 70.9%, 0%, 40.8%)
CIE-LABlab(25.04, 35.13, -59.01)
CIE-LCHlch(25.04, 68.68, 300.77°)
OKLaboklab(36.83% 0.0049 -0.1708)
OKLCHoklch(36.83% 0.171 271.6)
XYZxyz(7.2477, 4.4283, 29.7449)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252C97 #979025
analogous
#256597 #252C97 #572597
triadic
#252C97 #97252C #2C9725
tetradic
#252C97 #972565 #979025 #259757
square
#252C97 #972565 #979025 #259757
split-complementary
#252C97 #975725 #659725
monochromatic
#0D0F35 #191E66 #252C97 #313AC8 #5F66D8

Accessibility & contrast

On white

11.14
#252C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#252C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252C97
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252C97#FFFFFF#000000##FFFFFF
##252C971.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #252c97;
/* rgb */ color: rgb(37, 44, 151);
/* oklch */ color: oklch(36.8% 0.171 271.6);
Tailwind
colors: {
  custom: {
    50: '#7266b7',
    500: '#252c97',
    950: '#000000',
  },
}
SCSS
$custom: #252c97;
$custom-light: #7266b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252c97",
  "rgb": {
    "r": 37,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 236.316,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36829,
    "c": 0.17082,
    "h": 271.6
  },
  "luminance": 0.04429
}

Semantic roles & 50–950 ramp

primary
#252C97
secondary
#BDB75B
accent
#DA44E4
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252C97

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

Preview Lab → · Contrast checker → · Palette generator →

#252C97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva