#252299#252299

#252299 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.184 H 273.0°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#252299
RGBrgb(37, 34, 153)
HSLhsl(242, 64%, 37%)
HSVhsv(242, 78%, 60%)
CMYKcmyk(75.8%, 77.8%, 0%, 40%)
CIE-LABlab(23.12, 41.77, -63.40)
CIE-LCHlch(23.12, 75.93, 303.38°)
OKLaboklab(35.53% 0.0095 -0.1835)
OKLCHoklch(35.53% 0.184 273)
XYZxyz(7.0828, 3.8365, 30.4981)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252299 #969922
analogous
#225B99 #252299 #612299
triadic
#252299 #992522 #229925
tetradic
#252299 #99225B #969922 #229961
square
#252299 #99225B #969922 #229961
split-complementary
#252299 #996122 #5B9922
monochromatic
#0D0C35 #191767 #252299 #312DCB #5E5BDB

Accessibility & contrast

On white

11.88
#252299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#252299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252299
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252299#FFFFFF#000000##FFFFFF
##2522991.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252299;
/* rgb */ color: rgb(37, 34, 153);
/* oklch */ color: oklch(35.5% 0.184 273.0);
Tailwind
colors: {
  custom: {
    50: '#745fb8',
    500: '#252299',
    950: '#000000',
  },
}
SCSS
$custom: #252299;
$custom-light: #745fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#252299",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 241.513,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35527,
    "c": 0.18373,
    "h": 273
  },
  "luminance": 0.03837
}

Semantic roles & 50–950 ramp

primary
#252299
secondary
#BCBF58
accent
#E741E2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #252299

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

Preview Lab → · Contrast checker → · Palette generator →

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