#252995#252995

#252995 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.172 H 272.3°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#252995
RGBrgb(37, 41, 149)
HSLhsl(238, 60%, 36%)
HSVhsv(238, 75%, 58%)
CMYKcmyk(75.2%, 72.5%, 0%, 41.6%)
CIE-LABlab(24.16, 36.29, -59.24)
CIE-LCHlch(24.16, 69.47, 301.49°)
OKLaboklab(36.13% 0.0068 -0.1714)
OKLCHoklch(36.13% 0.172 272.3)
XYZxyz(6.9789, 4.1484, 28.8609)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252995 #959125
analogous
#256195 #252995 #592595
triadic
#252995 #952529 #299525
tetradic
#252995 #952561 #959125 #259559
square
#252995 #952561 #959125 #259559
split-complementary
#252995 #955925 #619525
monochromatic
#0D0E33 #191C64 #252995 #3136C6 #5E62D7

Accessibility & contrast

On white

11.48
#252995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#252995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252995
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252995#FFFFFF#000000##FFFFFF
##2529951.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #252995;
/* rgb */ color: rgb(37, 41, 149);
/* oklch */ color: oklch(36.1% 0.172 272.3);
Tailwind
colors: {
  custom: {
    50: '#7263b5',
    500: '#252995',
    950: '#000000',
  },
}
SCSS
$custom: #252995;
$custom-light: #7263b5;
$custom-dark: #000000;
JSON
{
  "hex": "#252995",
  "rgb": {
    "r": 37,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 237.857,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36133,
    "c": 0.17154,
    "h": 272.3
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#252995
secondary
#BCB85A
accent
#DE44E3
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #252995

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

Preview Lab → · Contrast checker → · Palette generator →

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