#27238C#27238C

#27238C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.166 H 274.9°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#27238C
RGBrgb(39, 35, 140)
HSLhsl(242, 60%, 34%)
HSVhsv(242, 75%, 55%)
CMYKcmyk(72.1%, 75%, 0%, 45.1%)
CIE-LABlab(22.04, 36.98, -57.15)
CIE-LCHlch(22.04, 68.07, 302.91°)
OKLaboklab(34.37% 0.0142 -0.1652)
OKLCHoklch(34.37% 0.166 274.9)
XYZxyz(6.1698, 3.5263, 25.1613)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27238C #888C23
analogous
#23548C #27238C #5C238C
triadic
#27238C #8C2723 #238C27
tetradic
#27238C #8C2354 #888C23 #238C5C
square
#27238C #8C2354 #888C23 #238C5C
split-complementary
#27238C #8C5C23 #548C23
monochromatic
#0C0B2A #19175B #27238C #352FBD #5A55D4

Accessibility & contrast

On white

12.31
#27238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#27238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27238C
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27238C#FFFFFF#000000##FFFFFF
##27238C1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #27238c;
/* rgb */ color: rgb(39, 35, 140);
/* oklch */ color: oklch(34.4% 0.166 274.9);
Tailwind
colors: {
  custom: {
    50: '#715faf',
    500: '#27238c',
    950: '#000000',
  },
}
SCSS
$custom: #27238c;
$custom-light: #715faf;
$custom-dark: #000000;
JSON
{
  "hex": "#27238c",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 242.286,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34373,
    "c": 0.16584,
    "h": 274.9
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#27238C
secondary
#B5B852
accent
#E345DD
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #27238C

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

Preview Lab → · Contrast checker → · Palette generator →

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