#28267F#28267F

#28267F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.145 H 276.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#28267F
RGBrgb(40, 38, 127)
HSLhsl(241, 54%, 32%)
HSVhsv(241, 70%, 50%)
CMYKcmyk(68.5%, 70.1%, 0%, 50.2%)
CIE-LABlab(21.47, 30.70, -49.92)
CIE-LCHlch(21.47, 58.61, 301.59°)
OKLaboklab(33.58% 0.0157 -0.1441)
OKLCHoklch(33.58% 0.145 276.2)
XYZxyz(5.3977, 3.3692, 20.4404)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28267F #7D7F26
analogous
#26517F #28267F #54267F
triadic
#28267F #7F2826 #267F28
tetradic
#28267F #7F2651 #7D7F26 #267F54
square
#28267F #7F2651 #7D7F26 #267F54
split-complementary
#28267F #7F5426 #517F26
monochromatic
#0A0A21 #191850 #28267F #3734AE #5654CC

Accessibility & contrast

On white

12.54
#28267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#28267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28267F
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28267F#FFFFFF#000000##FFFFFF
##28267F1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #28267f;
/* rgb */ color: rgb(40, 38, 127);
/* oklch */ color: oklch(33.6% 0.145 276.2);
Tailwind
colors: {
  custom: {
    50: '#6e61a5',
    500: '#28267f',
    950: '#000000',
  },
}
SCSS
$custom: #28267f;
$custom-light: #6e61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28267f",
  "rgb": {
    "r": 40,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 241.348,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33582,
    "c": 0.14496,
    "h": 276.2
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#28267F
secondary
#AEB051
accent
#DD4ADA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #28267F

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

Preview Lab → · Contrast checker → · Palette generator →

#28267F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva