#27247E#27247E

#27247E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.146 H 276.3°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#27247E
RGBrgb(39, 36, 126)
HSLhsl(242, 56%, 32%)
HSVhsv(242, 71%, 49%)
CMYKcmyk(69%, 71.4%, 0%, 50.6%)
CIE-LABlab(20.82, 31.48, -50.34)
CIE-LCHlch(20.82, 59.38, 302.02°)
OKLaboklab(33.07% 0.016 -0.1454)
OKLCHoklch(33.07% 0.146 276.3)
XYZxyz(5.2322, 3.1990, 20.0764)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27247E #7B7E24
analogous
#244E7E #27247E #54247E
triadic
#27247E #7E2724 #247E27
tetradic
#27247E #7E244E #7B7E24 #247E54
square
#27247E #7E244E #7B7E24 #247E54
split-complementary
#27247E #7E5424 #4E7E24
monochromatic
#0A091F #18164E #27247E #3632AE #5450CD

Accessibility & contrast

On white

12.81
#27247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#27247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27247E
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27247E#FFFFFF#000000##FFFFFF
##27247E1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27247e;
/* rgb */ color: rgb(39, 36, 126);
/* oklch */ color: oklch(33.1% 0.146 276.3);
Tailwind
colors: {
  custom: {
    50: '#6e5fa4',
    500: '#27247e',
    950: '#000000',
  },
}
SCSS
$custom: #27247e;
$custom-light: #6e5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#27247e",
  "rgb": {
    "r": 39,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 242,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3307,
    "c": 0.14625,
    "h": 276.3
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#27247E
secondary
#ADB04E
accent
#DF49DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #27247E

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

Preview Lab → · Contrast checker → · Palette generator →

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