#28266D#28266D

#28266D is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.9% C 0.120 H 278.4°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#28266D
RGBrgb(40, 38, 109)
HSLhsl(242, 48%, 29%)
HSVhsv(242, 65%, 43%)
CMYKcmyk(63.3%, 65.1%, 0%, 57.3%)
CIE-LABlab(19.81, 24.20, -41.11)
CIE-LCHlch(19.81, 47.70, 300.49°)
OKLaboklab(31.86% 0.0175 -0.1182)
OKLCHoklch(31.86% 0.12 278.4)
XYZxyz(4.3276, 2.9411, 14.8047)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28266D #6B6D26
analogous
#26486D #28266D #4C266D
triadic
#28266D #6D2826 #266D28
tetradic
#28266D #6D2648 #6B6D26 #266D4C
square
#28266D #6D2648 #6B6D26 #266D4C
split-complementary
#28266D #6D4C26 #486D26
monochromatic
#080817 #171640 #28266D #39369A #504DC1

Accessibility & contrast

On white

13.22
#28266D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#28266D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28266D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28266D#FFFFFF#000000##FFFFFF
##28266D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28266d;
/* rgb */ color: rgb(40, 38, 109);
/* oklch */ color: oklch(31.9% 0.120 278.4);
Tailwind
colors: {
  custom: {
    50: '#6a6097',
    500: '#28266d',
    950: '#000000',
  },
}
SCSS
$custom: #28266d;
$custom-light: #6a6097;
$custom-dark: #000000;
JSON
{
  "hex": "#28266d",
  "rgb": {
    "r": 40,
    "g": 38,
    "b": 109
  },
  "hsl": {
    "h": 241.69,
    "s": 48.299,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31862,
    "c": 0.11954,
    "h": 278.4
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#28266D
secondary
#9DA04F
accent
#D850D4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #28266D

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

Preview Lab → · Contrast checker → · Palette generator →

#28266D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva