#28239F#28239F

#28239F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.189 H 273.5°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#28239F
RGBrgb(40, 35, 159)
HSLhsl(242, 64%, 38%)
HSVhsv(242, 78%, 62%)
CMYKcmyk(74.8%, 78%, 0%, 37.6%)
CIE-LABlab(24.18, 43.46, -65.32)
CIE-LCHlch(24.18, 78.46, 303.64°)
OKLaboklab(36.52% 0.0115 -0.189)
OKLCHoklch(36.52% 0.189 273.5)
XYZxyz(7.7320, 4.1556, 33.1888)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28239F #9A9F23
analogous
#235C9F #28239F #66239F
triadic
#28239F #9F2823 #239F28
tetradic
#28239F #9F235C #9A9F23 #239F66
square
#28239F #9F235C #9A9F23 #239F66
split-complementary
#28239F #9F6623 #5C9F23
monochromatic
#0F0D3B #1B186D #28239F #352ED1 #6560DC

Accessibility & contrast

On white

11.47
#28239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#28239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28239F
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28239F#FFFFFF#000000##FFFFFF
##28239F1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28239f;
/* rgb */ color: rgb(40, 35, 159);
/* oklch */ color: oklch(36.5% 0.189 273.5);
Tailwind
colors: {
  custom: {
    50: '#7660bd',
    500: '#28239f',
    950: '#000000',
  },
}
SCSS
$custom: #28239f;
$custom-light: #7660bd;
$custom-dark: #000000;
JSON
{
  "hex": "#28239f",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 242.419,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36518,
    "c": 0.18935,
    "h": 273.5
  },
  "luminance": 0.04156
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28239F

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

Preview Lab → · Contrast checker → · Palette generator →

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