#28259C#28259C

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

Color values

HEX#28259C
RGBrgb(40, 37, 156)
HSLhsl(242, 62%, 38%)
HSVhsv(242, 76%, 61%)
CMYKcmyk(74.4%, 76.3%, 0%, 38.8%)
CIE-LABlab(24.24, 41.36, -63.39)
CIE-LCHlch(24.24, 75.69, 303.12°)
OKLaboklab(36.46% 0.0113 -0.1834)
OKLCHoklch(36.46% 0.184 273.5)
XYZxyz(7.5354, 4.1738, 31.8545)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28259C #999C25
analogous
#255D9C #28259C #64259C
triadic
#28259C #9C2825 #259C28
tetradic
#28259C #9C255D #999C25 #259C64
square
#28259C #9C255D #999C25 #259C64
split-complementary
#28259C #9C6425 #5D9C25
monochromatic
#0F0E39 #1B196B #28259C #3531CD #6562DA

Accessibility & contrast

On white

11.44
#28259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#28259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##28259C#FFFFFF#000000##FFFFFF
##28259C1.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)
#003F9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #28259c;
/* rgb */ color: rgb(40, 37, 156);
/* oklch */ color: oklch(36.5% 0.184 273.5);
Tailwind
colors: {
  custom: {
    50: '#7561ba',
    500: '#28259c',
    950: '#000000',
  },
}
SCSS
$custom: #28259c;
$custom-light: #7561ba;
$custom-dark: #000000;
JSON
{
  "hex": "#28259c",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 241.513,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36462,
    "c": 0.18375,
    "h": 273.5
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#28259C
secondary
#BDBF5E
accent
#E543E1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28259C

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

Preview Lab → · Contrast checker → · Palette generator →

#28259C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva