#27238D#27238D

#27238D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.167 H 274.8°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#27238D
RGBrgb(39, 35, 141)
HSLhsl(242, 60%, 35%)
HSVhsv(242, 75%, 55%)
CMYKcmyk(72.3%, 75.2%, 0%, 44.7%)
CIE-LABlab(22.15, 37.33, -57.59)
CIE-LCHlch(22.15, 68.63, 302.95°)
OKLaboklab(34.48% 0.014 -0.1665)
OKLCHoklch(34.48% 0.167 274.8)
XYZxyz(6.2439, 3.5559, 25.5514)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27238D #898D23
analogous
#23548D #27238D #5C238D
triadic
#27238D #8D2723 #238D27
tetradic
#27238D #8D2354 #898D23 #238D5C
square
#27238D #8D2354 #898D23 #238D5C
split-complementary
#27238D #8D5C23 #548D23
monochromatic
#0C0B2B #19175C #27238D #352FBE #5A55D5

Accessibility & contrast

On white

12.27
#27238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27238D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27238D#FFFFFF#000000##FFFFFF
##27238D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #27238d;
/* rgb */ color: rgb(39, 35, 141);
/* oklch */ color: oklch(34.5% 0.167 274.8);
Tailwind
colors: {
  custom: {
    50: '#725faf',
    500: '#27238d',
    950: '#000000',
  },
}
SCSS
$custom: #27238d;
$custom-light: #725faf;
$custom-dark: #000000;
JSON
{
  "hex": "#27238d",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 242.264,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3448,
    "c": 0.16712,
    "h": 274.8
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#27238D
secondary
#B5B953
accent
#E344DD
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #27238D

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

Preview Lab → · Contrast checker → · Palette generator →

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