#27238E#27238E

#27238E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.168 H 274.7°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#27238E
RGBrgb(39, 35, 142)
HSLhsl(242, 60%, 35%)
HSVhsv(242, 75%, 56%)
CMYKcmyk(72.5%, 75.4%, 0%, 44.3%)
CIE-LABlab(22.25, 37.67, -58.04)
CIE-LCHlch(22.25, 69.19, 302.98°)
OKLaboklab(34.59% 0.0138 -0.1678)
OKLCHoklch(34.59% 0.168 274.7)
XYZxyz(6.3186, 3.5858, 25.9451)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27238E #8A8E23
analogous
#23558E #27238E #5D238E
triadic
#27238E #8E2723 #238E27
tetradic
#27238E #8E2355 #8A8E23 #238E5D
square
#27238E #8E2355 #8A8E23 #238E5D
split-complementary
#27238E #8E5D23 #558E23
monochromatic
#0C0B2C #1A175D #27238E #342FBF #5B56D5

Accessibility & contrast

On white

12.23
#27238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#27238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27238E
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27238E#FFFFFF#000000##FFFFFF
##27238E1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #27238e;
/* rgb */ color: rgb(39, 35, 142);
/* oklch */ color: oklch(34.6% 0.168 274.7);
Tailwind
colors: {
  custom: {
    50: '#725fb0',
    500: '#27238e',
    950: '#000000',
  },
}
SCSS
$custom: #27238e;
$custom-light: #725fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#27238e",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 242.243,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34588,
    "c": 0.1684,
    "h": 274.7
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#27238E
secondary
#B6B953
accent
#E444DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #27238E

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

Preview Lab → · Contrast checker → · Palette generator →

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