#28309F#28309F

#28309F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.176 H 271.6°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#28309F
RGBrgb(40, 48, 159)
HSLhsl(236, 60%, 39%)
HSVhsv(236, 75%, 62%)
CMYKcmyk(74.8%, 69.8%, 0%, 37.6%)
CIE-LABlab(26.93, 35.80, -60.79)
CIE-LCHlch(26.93, 70.55, 300.49°)
OKLaboklab(38.48% 0.005 -0.1759)
OKLCHoklch(38.48% 0.176 271.6)
XYZxyz(8.1879, 5.0674, 33.3407)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28309F #9F9728
analogous
#286C9F #28309F #5C289F
triadic
#28309F #9F2830 #309F28
tetradic
#28309F #9F286C #9F9728 #289F5C
square
#28309F #9F286C #9F9728 #289F5C
split-complementary
#28309F #9F5C28 #6C9F28
monochromatic
#0F123D #1C216E #28309F #3741CD #6870D9

Accessibility & contrast

On white

10.43
#28309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#28309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28309F
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28309F#FFFFFF#000000##FFFFFF
##28309F1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28309f;
/* rgb */ color: rgb(40, 48, 159);
/* oklch */ color: oklch(38.5% 0.176 271.6);
Tailwind
colors: {
  custom: {
    50: '#7569bc',
    500: '#28309f',
    950: '#000000',
  },
}
SCSS
$custom: #28309f;
$custom-light: #7569bc;
$custom-dark: #000000;
JSON
{
  "hex": "#28309f",
  "rgb": {
    "r": 40,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 235.966,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38477,
    "c": 0.17595,
    "h": 271.6
  },
  "luminance": 0.05068
}

Semantic roles & 50–950 ramp

primary
#28309F
secondary
#BFB964
accent
#D845E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #28309F

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

Preview Lab → · Contrast checker → · Palette generator →

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