#252779#252779

#252779 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.136 H 274.9°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#252779
RGBrgb(37, 39, 121)
HSLhsl(239, 53%, 31%)
HSVhsv(239, 69%, 47%)
CMYKcmyk(69.4%, 67.8%, 0%, 52.5%)
CIE-LABlab(20.92, 27.43, -47.01)
CIE-LCHlch(20.92, 54.43, 300.27°)
OKLaboklab(32.96% 0.0117 -0.1357)
OKLCHoklch(32.96% 0.136 274.9)
XYZxyz(4.9385, 3.2244, 18.4476)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252779 #797725
analogous
#255179 #252779 #4D2579
triadic
#252779 #792527 #277925
tetradic
#252779 #792551 #797725 #25794D
square
#252779 #792551 #797725 #25794D
split-complementary
#252779 #794D25 #517925
monochromatic
#08091B #17184A #252779 #3336A8 #4F52C9

Accessibility & contrast

On white

12.77
#252779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#252779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252779
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252779#FFFFFF#000000##FFFFFF
##2527791.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #252779;
/* rgb */ color: rgb(37, 39, 121);
/* oklch */ color: oklch(33.0% 0.136 274.9);
Tailwind
colors: {
  custom: {
    50: '#6b61a1',
    500: '#252779',
    950: '#000000',
  },
}
SCSS
$custom: #252779;
$custom-light: #6b61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#252779",
  "rgb": {
    "r": 37,
    "g": 39,
    "b": 121
  },
  "hsl": {
    "h": 238.571,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32955,
    "c": 0.13616,
    "h": 274.9
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#252779
secondary
#ABA94E
accent
#D94BDD
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#08050F
muted
#7A797F

Preview Lab

Preview with #252779

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

Preview Lab → · Contrast checker → · Palette generator →

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