#28268E#28268E

#28268E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.165 H 274.6°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#28268E
RGBrgb(40, 38, 142)
HSLhsl(241, 58%, 35%)
HSVhsv(241, 73%, 56%)
CMYKcmyk(71.8%, 73.2%, 0%, 44.3%)
CIE-LABlab(22.96, 35.99, -56.87)
CIE-LCHlch(22.96, 67.30, 302.33°)
OKLaboklab(35.11% 0.0134 -0.1644)
OKLCHoklch(35.11% 0.165 274.6)
XYZxyz(6.4491, 3.7897, 25.9776)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28268E #8C8E26
analogous
#26588E #28268E #5C268E
triadic
#28268E #8E2826 #268E28
tetradic
#28268E #8E2658 #8C8E26 #268E5C
square
#28268E #8E2658 #8C8E26 #268E5C
split-complementary
#28268E #8E5C26 #588E26
monochromatic
#0D0C2D #1A195E #28268E #3633BE #5E5BD3

Accessibility & contrast

On white

11.95
#28268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#28268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28268E
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28268E#FFFFFF#000000##FFFFFF
##28268E1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #28268e;
/* rgb */ color: rgb(40, 38, 142);
/* oklch */ color: oklch(35.1% 0.165 274.6);
Tailwind
colors: {
  custom: {
    50: '#7261b0',
    500: '#28268e',
    950: '#000000',
  },
}
SCSS
$custom: #28268e;
$custom-light: #7261b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28268e",
  "rgb": {
    "r": 40,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 241.154,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35113,
    "c": 0.16494,
    "h": 274.6
  },
  "luminance": 0.0379
}

Semantic roles & 50–950 ramp

primary
#28268E
secondary
#B6B858
accent
#E147DE
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #28268E

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

Preview Lab → · Contrast checker → · Palette generator →

#28268E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva