#27238B#27238B

#27238B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.165 H 275.0°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#27238B
RGBrgb(39, 35, 139)
HSLhsl(242, 60%, 34%)
HSVhsv(242, 75%, 55%)
CMYKcmyk(71.9%, 74.8%, 0%, 45.5%)
CIE-LABlab(21.93, 36.64, -56.70)
CIE-LCHlch(21.93, 67.51, 302.87°)
OKLaboklab(34.27% 0.0144 -0.1639)
OKLCHoklch(34.27% 0.165 275)
XYZxyz(6.0964, 3.4969, 24.7748)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27238B #878B23
analogous
#23538B #27238B #5B238B
triadic
#27238B #8B2723 #238B27
tetradic
#27238B #8B2353 #878B23 #238B5B
square
#27238B #8B2353 #878B23 #238B5B
split-complementary
#27238B #8B5B23 #538B23
monochromatic
#0C0A29 #19175A #27238B #352FBC #5954D4

Accessibility & contrast

On white

12.36
#27238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#27238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27238B
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27238B#FFFFFF#000000##FFFFFF
##27238B1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #27238b;
/* rgb */ color: rgb(39, 35, 139);
/* oklch */ color: oklch(34.3% 0.165 275.0);
Tailwind
colors: {
  custom: {
    50: '#715fae',
    500: '#27238b',
    950: '#000000',
  },
}
SCSS
$custom: #27238b;
$custom-light: #715fae;
$custom-dark: #000000;
JSON
{
  "hex": "#27238b",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 242.308,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34266,
    "c": 0.16455,
    "h": 275
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#27238B
secondary
#B4B852
accent
#E345DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #27238B

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

Preview Lab → · Contrast checker → · Palette generator →

#27238B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva