#252898#252898

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

Color values

HEX#252898
RGBrgb(37, 40, 152)
HSLhsl(238, 61%, 37%)
HSVhsv(238, 76%, 60%)
CMYKcmyk(75.7%, 73.7%, 0%, 40.4%)
CIE-LABlab(24.25, 37.95, -60.93)
CIE-LCHlch(24.25, 71.78, 301.92°)
OKLaboklab(36.29% 0.0069 -0.1763)
OKLCHoklch(36.29% 0.176 272.2)
XYZxyz(7.1873, 4.1771, 30.1272)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252898 #989525
analogous
#256298 #252898 #5C2598
triadic
#252898 #982528 #289825
tetradic
#252898 #982562 #989525 #25985C
square
#252898 #982562 #989525 #25985C
split-complementary
#252898 #985C25 #629825
monochromatic
#0D0E36 #191B67 #252898 #3135C9 #5F62D8

Accessibility & contrast

On white

11.44
#252898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252898
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252898#FFFFFF#000000##FFFFFF
##2528981.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252898;
/* rgb */ color: rgb(37, 40, 152);
/* oklch */ color: oklch(36.3% 0.176 272.2);
Tailwind
colors: {
  custom: {
    50: '#7363b7',
    500: '#252898',
    950: '#000000',
  },
}
SCSS
$custom: #252898;
$custom-light: #7363b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252898",
  "rgb": {
    "r": 37,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 238.435,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36292,
    "c": 0.17646,
    "h": 272.2
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#252898
secondary
#BDBB5C
accent
#E044E4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #252898

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

Preview Lab → · Contrast checker → · Palette generator →

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