#27247B#27247B

#27247B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.142 H 276.6°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#27247B
RGBrgb(39, 36, 123)
HSLhsl(242, 55%, 31%)
HSVhsv(242, 71%, 48%)
CMYKcmyk(68.3%, 70.7%, 0%, 51.8%)
CIE-LABlab(20.53, 30.41, -48.92)
CIE-LCHlch(20.53, 57.61, 301.87°)
OKLaboklab(32.77% 0.0164 -0.1412)
OKLCHoklch(32.77% 0.142 276.6)
XYZxyz(5.0416, 3.1227, 19.0721)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27247B #787B24
analogous
#244C7B #27247B #52247B
triadic
#27247B #7B2724 #247B27
tetradic
#27247B #7B244C #787B24 #247B52
square
#27247B #7B244C #787B24 #247B52
split-complementary
#27247B #7B5224 #4C7B24
monochromatic
#09081C #18164C #27247B #3632AA #524ECB

Accessibility & contrast

On white

12.93
#27247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#27247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27247B
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27247B#FFFFFF#000000##FFFFFF
##27247B1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #27247b;
/* rgb */ color: rgb(39, 36, 123);
/* oklch */ color: oklch(32.8% 0.142 276.6);
Tailwind
colors: {
  custom: {
    50: '#6d5fa2',
    500: '#27247b',
    950: '#000000',
  },
}
SCSS
$custom: #27247b;
$custom-light: #6d5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#27247b",
  "rgb": {
    "r": 39,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 242.069,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32767,
    "c": 0.14216,
    "h": 276.6
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#27247B
secondary
#AAAD4D
accent
#DE4AD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #27247B

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

Preview Lab → · Contrast checker → · Palette generator →

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