#28236E#28236E

#28236E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.125 H 279.4°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#28236E
RGBrgb(40, 35, 110)
HSLhsl(244, 52%, 28%)
HSVhsv(244, 68%, 43%)
CMYKcmyk(63.6%, 68.2%, 0%, 56.9%)
CIE-LABlab(19.13, 26.58, -42.85)
CIE-LCHlch(19.13, 50.42, 301.81°)
OKLaboklab(31.4% 0.0203 -0.1234)
OKLCHoklch(31.4% 0.125 279.4)
XYZxyz(4.2897, 2.7787, 15.0591)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28236E #696E23
analogous
#23436E #28236E #4D236E
triadic
#28236E #6E2823 #236E28
tetradic
#28236E #6E2343 #696E23 #236E4D
square
#28236E #6E2343 #696E23 #236E4D
split-complementary
#28236E #6E4D23 #436E23
monochromatic
#080717 #171440 #28236E #39329C #4F47C4

Accessibility & contrast

On white

13.50
#28236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#28236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28236E
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28236E#FFFFFF#000000##FFFFFF
##28236E1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #28236e;
/* rgb */ color: rgb(40, 35, 110);
/* oklch */ color: oklch(31.4% 0.125 279.4);
Tailwind
colors: {
  custom: {
    50: '#6b5e98',
    500: '#28236e',
    950: '#000000',
  },
}
SCSS
$custom: #28236e;
$custom-light: #6b5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#28236e",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 244,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31399,
    "c": 0.12506,
    "h": 279.4
  },
  "luminance": 0.02779
}

Semantic roles & 50–950 ramp

primary
#28236E
secondary
#9CA14C
accent
#DB4DD2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #28236E

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

Preview Lab → · Contrast checker → · Palette generator →

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