#252899#252899

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

Color values

HEX#252899
RGBrgb(37, 40, 153)
HSLhsl(238, 61%, 37%)
HSVhsv(238, 76%, 60%)
CMYKcmyk(75.8%, 73.9%, 0%, 40%)
CIE-LABlab(24.35, 38.30, -61.37)
CIE-LCHlch(24.35, 72.34, 301.97°)
OKLaboklab(36.4% 0.0067 -0.1776)
OKLCHoklch(36.4% 0.178 272.2)
XYZxyz(7.2696, 4.2100, 30.5603)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252899 #999625
analogous
#256299 #252899 #5C2599
triadic
#252899 #992528 #289925
tetradic
#252899 #992562 #999625 #25995C
square
#252899 #992562 #999625 #25995C
split-complementary
#252899 #995C25 #629925
monochromatic
#0D0E36 #191B68 #252899 #3135CA #6063D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##252899#FFFFFF#000000##FFFFFF
##2528991.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)
#003F9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #252899;
/* rgb */ color: rgb(37, 40, 153);
/* oklch */ color: oklch(36.4% 0.178 272.2);
Tailwind
colors: {
  custom: {
    50: '#7363b8',
    500: '#252899',
    950: '#000000',
  },
}
SCSS
$custom: #252899;
$custom-light: #7363b8;
$custom-dark: #000000;
JSON
{
  "hex": "#252899",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 238.448,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36399,
    "c": 0.17774,
    "h": 272.2
  },
  "luminance": 0.04211
}

Semantic roles & 50–950 ramp

primary
#252899
secondary
#BEBB5C
accent
#E044E4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #252899

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

Preview Lab → · Contrast checker → · Palette generator →

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