#27237E#27237E

#27237E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.147 H 276.5°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#27237E
RGBrgb(39, 35, 126)
HSLhsl(243, 57%, 32%)
HSVhsv(243, 72%, 49%)
CMYKcmyk(69%, 72.2%, 0%, 50.6%)
CIE-LABlab(20.59, 32.11, -50.72)
CIE-LCHlch(20.59, 60.03, 302.34°)
OKLaboklab(32.9% 0.0167 -0.1465)
OKLCHoklch(32.9% 0.147 276.5)
XYZxyz(5.2024, 3.1393, 20.0664)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27237E #7A7E23
analogous
#234D7E #27237E #55237E
triadic
#27237E #7E2723 #237E27
tetradic
#27237E #7E234D #7A7E23 #237E55
square
#27237E #7E234D #7A7E23 #237E55
split-complementary
#27237E #7E5523 #4D7E23
monochromatic
#09081E #18164E #27237E #3630AE #534ECE

Accessibility & contrast

On white

12.90
#27237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#27237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27237E
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27237E#FFFFFF#000000##FFFFFF
##27237E1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #27237e;
/* rgb */ color: rgb(39, 35, 126);
/* oklch */ color: oklch(32.9% 0.147 276.5);
Tailwind
colors: {
  custom: {
    50: '#6e5fa4',
    500: '#27237e',
    950: '#000000',
  },
}
SCSS
$custom: #27237e;
$custom-light: #6e5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#27237e",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 242.637,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32904,
    "c": 0.14743,
    "h": 276.5
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#27237E
secondary
#ACB04C
accent
#E048D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #27237E

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

Preview Lab → · Contrast checker → · Palette generator →

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