#27247F#27247F

#27247F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.148 H 276.2°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#27247F
RGBrgb(39, 36, 127)
HSLhsl(242, 56%, 32%)
HSVhsv(242, 72%, 50%)
CMYKcmyk(69.3%, 71.7%, 0%, 50.2%)
CIE-LABlab(20.92, 31.84, -50.82)
CIE-LCHlch(20.92, 59.96, 302.07°)
OKLaboklab(33.17% 0.0158 -0.1467)
OKLCHoklch(33.17% 0.148 276.2)
XYZxyz(5.2971, 3.2249, 20.4179)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27247F #7C7F24
analogous
#244F7F #27247F #55247F
triadic
#27247F #7F2724 #247F27
tetradic
#27247F #7F244F #7C7F24 #247F55
square
#27247F #7F244F #7C7F24 #247F55
split-complementary
#27247F #7F5524 #4F7F24
monochromatic
#0A0920 #18164F #27247F #3632AF #5450CD

Accessibility & contrast

On white

12.77
#27247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#27247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27247F
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27247F#FFFFFF#000000##FFFFFF
##27247F1.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #27247f;
/* rgb */ color: rgb(39, 36, 127);
/* oklch */ color: oklch(33.2% 0.148 276.2);
Tailwind
colors: {
  custom: {
    50: '#6e5fa5',
    500: '#27247f',
    950: '#000000',
  },
}
SCSS
$custom: #27247f;
$custom-light: #6e5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#27247f",
  "rgb": {
    "r": 39,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 241.978,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33172,
    "c": 0.1476,
    "h": 276.2
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#27247F
secondary
#AEB14E
accent
#DF49DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #27247F

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

Preview Lab → · Contrast checker → · Palette generator →

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