#27248C#27248C

#27248C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.165 H 274.7°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#27248C
RGBrgb(39, 36, 140)
HSLhsl(242, 59%, 35%)
HSVhsv(242, 74%, 55%)
CMYKcmyk(72.1%, 74.3%, 0%, 45.1%)
CIE-LABlab(22.25, 36.39, -56.80)
CIE-LCHlch(22.25, 67.45, 302.65°)
OKLaboklab(34.53% 0.0136 -0.1642)
OKLCHoklch(34.53% 0.165 274.7)
XYZxyz(6.1996, 3.5859, 25.1713)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27248C #898C24
analogous
#24558C #27248C #5B248C
triadic
#27248C #8C2724 #248C27
tetradic
#27248C #8C2455 #898C24 #248C5B
square
#27248C #8C2455 #898C24 #248C5B
split-complementary
#27248C #8C5B24 #558C24
monochromatic
#0C0B2B #19175B #27248C #3531BD #5A57D4

Accessibility & contrast

On white

12.23
#27248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#27248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27248C
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27248C#FFFFFF#000000##FFFFFF
##27248C1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27248c;
/* rgb */ color: rgb(39, 36, 140);
/* oklch */ color: oklch(34.5% 0.165 274.7);
Tailwind
colors: {
  custom: {
    50: '#7160af',
    500: '#27248c',
    950: '#000000',
  },
}
SCSS
$custom: #27248c;
$custom-light: #7160af;
$custom-dark: #000000;
JSON
{
  "hex": "#27248c",
  "rgb": {
    "r": 39,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 241.731,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34525,
    "c": 0.16477,
    "h": 274.7
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#27248C
secondary
#B5B854
accent
#E246DE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #27248C

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

Preview Lab → · Contrast checker → · Palette generator →

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