#252790#252790

#252790 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.167 H 273.0°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#252790
RGBrgb(37, 39, 144)
HSLhsl(239, 59%, 35%)
HSVhsv(239, 74%, 56%)
CMYKcmyk(74.3%, 72.9%, 0%, 43.5%)
CIE-LABlab(23.19, 35.75, -57.73)
CIE-LCHlch(23.19, 67.91, 301.76°)
OKLaboklab(35.29% 0.0087 -0.167)
OKLCHoklch(35.29% 0.167 273)
XYZxyz(6.5208, 3.8573, 26.7810)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252790 #908E25
analogous
#255C90 #252790 #592590
triadic
#252790 #902527 #279025
tetradic
#252790 #90255C #908E25 #259059
square
#252790 #90255C #908E25 #259059
split-complementary
#252790 #905925 #5C9025
monochromatic
#0C0D2F #181A5F #252790 #3234C1 #5B5DD5

Accessibility & contrast

On white

11.85
#252790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252790
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252790#FFFFFF#000000##FFFFFF
##2527901.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252790;
/* rgb */ color: rgb(37, 39, 144);
/* oklch */ color: oklch(35.3% 0.167 273.0);
Tailwind
colors: {
  custom: {
    50: '#7162b2',
    500: '#252790',
    950: '#000000',
  },
}
SCSS
$custom: #252790;
$custom-light: #7162b2;
$custom-dark: #000000;
JSON
{
  "hex": "#252790",
  "rgb": {
    "r": 37,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 238.879,
    "s": 59.116,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35288,
    "c": 0.16724,
    "h": 273
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#252790
secondary
#B9B857
accent
#DF45E2
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #252790

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

Preview Lab → · Contrast checker → · Palette generator →

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