#28239E#28239E

#28239E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.188 H 273.6°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#28239E
RGBrgb(40, 35, 158)
HSLhsl(242, 64%, 38%)
HSVhsv(242, 78%, 62%)
CMYKcmyk(74.7%, 77.8%, 0%, 38%)
CIE-LABlab(24.07, 43.13, -64.90)
CIE-LCHlch(24.07, 77.92, 303.61°)
OKLaboklab(36.41% 0.0117 -0.1878)
OKLCHoklch(36.41% 0.188 273.6)
XYZxyz(7.6456, 4.1210, 32.7336)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28239E #999E23
analogous
#235B9E #28239E #65239E
triadic
#28239E #9E2823 #239E28
tetradic
#28239E #9E235B #999E23 #239E65
square
#28239E #9E235B #999E23 #239E65
split-complementary
#28239E #9E6523 #5B9E23
monochromatic
#0F0D3A #1B186C #28239E #352ED0 #6560DC

Accessibility & contrast

On white

11.51
#28239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#28239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28239E
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28239E#FFFFFF#000000##FFFFFF
##28239E1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28239e;
/* rgb */ color: rgb(40, 35, 158);
/* oklch */ color: oklch(36.4% 0.188 273.6);
Tailwind
colors: {
  custom: {
    50: '#7660bc',
    500: '#28239e',
    950: '#000000',
  },
}
SCSS
$custom: #28239e;
$custom-light: #7660bc;
$custom-dark: #000000;
JSON
{
  "hex": "#28239e",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 242.439,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36407,
    "c": 0.18813,
    "h": 273.6
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#28239E
secondary
#BDC15C
accent
#E741E0
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28239E

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

Preview Lab → · Contrast checker → · Palette generator →

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