#27239B#27239B

#27239B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.185 H 273.5°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#27239B
RGBrgb(39, 35, 155)
HSLhsl(242, 63%, 37%)
HSVhsv(242, 77%, 61%)
CMYKcmyk(74.8%, 77.4%, 0%, 39.2%)
CIE-LABlab(23.67, 42.05, -63.72)
CIE-LCHlch(23.67, 76.35, 303.42°)
OKLaboklab(36.01% 0.0111 -0.1844)
OKLCHoklch(36.01% 0.185 273.5)
XYZxyz(7.3522, 3.9992, 31.3884)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27239B #979B23
analogous
#235B9B #27239B #63239B
triadic
#27239B #9B2723 #239B27
tetradic
#27239B #9B235B #979B23 #239B63
square
#27239B #9B235B #979B23 #239B63
split-complementary
#27239B #9B6323 #5B9B23
monochromatic
#0E0C37 #1A1869 #27239B #342ECD #625EDB

Accessibility & contrast

On white

11.67
#27239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#27239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27239B
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27239B#FFFFFF#000000##FFFFFF
##27239B1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #27239b;
/* rgb */ color: rgb(39, 35, 155);
/* oklch */ color: oklch(36.0% 0.185 273.5);
Tailwind
colors: {
  custom: {
    50: '#7560ba',
    500: '#27239b',
    950: '#000000',
  },
}
SCSS
$custom: #27239b;
$custom-light: #7560ba;
$custom-dark: #000000;
JSON
{
  "hex": "#27239b",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 242,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3601,
    "c": 0.18472,
    "h": 273.5
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#27239B
secondary
#BCBF5A
accent
#E642E1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #27239B

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

Preview Lab → · Contrast checker → · Palette generator →

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