#28257A#28257A

#28257A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.139 H 277.1°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#28257A
RGBrgb(40, 37, 122)
HSLhsl(242, 53%, 31%)
HSVhsv(242, 70%, 48%)
CMYKcmyk(67.2%, 69.7%, 0%, 52.2%)
CIE-LABlab(20.75, 29.56, -47.92)
CIE-LCHlch(20.75, 56.31, 301.66°)
OKLaboklab(32.92% 0.0171 -0.1383)
OKLCHoklch(32.92% 0.139 277.1)
XYZxyz(5.0484, 3.1790, 18.7561)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28257A #777A25
analogous
#254C7A #28257A #52257A
triadic
#28257A #7A2825 #257A28
tetradic
#28257A #7A254C #777A25 #257A52
square
#28257A #7A254C #777A25 #257A52
split-complementary
#28257A #7A5225 #4C7A25
monochromatic
#09091C #19174B #28257A #3733A9 #5450CA

Accessibility & contrast

On white

12.84
#28257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#28257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28257A
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28257A#FFFFFF#000000##FFFFFF
##28257A1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #28257a;
/* rgb */ color: rgb(40, 37, 122);
/* oklch */ color: oklch(32.9% 0.139 277.1);
Tailwind
colors: {
  custom: {
    50: '#6d60a1',
    500: '#28257a',
    950: '#000000',
  },
}
SCSS
$custom: #28257a;
$custom-light: #6d60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#28257a",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 242.118,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32915,
    "c": 0.13932,
    "h": 277.1
  },
  "luminance": 0.03179
}

Semantic roles & 50–950 ramp

primary
#28257A
secondary
#A9AC4E
accent
#DD4BD8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #28257A

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

Preview Lab → · Contrast checker → · Palette generator →

#28257A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva