#27237C#27237C

#27237C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.145 H 276.8°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#27237C
RGBrgb(39, 35, 124)
HSLhsl(243, 56%, 31%)
HSVhsv(243, 72%, 49%)
CMYKcmyk(68.5%, 71.8%, 0%, 51.4%)
CIE-LABlab(20.39, 31.40, -49.78)
CIE-LCHlch(20.39, 58.86, 302.25°)
OKLaboklab(32.7% 0.0171 -0.1437)
OKLCHoklch(32.7% 0.145 276.8)
XYZxyz(5.0746, 3.0882, 19.3935)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27237C #787C23
analogous
#234B7C #27237C #53237C
triadic
#27237C #7C2723 #237C27
tetradic
#27237C #7C234B #787C23 #237C53
square
#27237C #7C234B #787C23 #237C53
split-complementary
#27237C #7C5323 #4B7C23
monochromatic
#09081D #18164C #27237C #3630AC #524DCD

Accessibility & contrast

On white

12.98
#27237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#27237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27237C
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27237C#FFFFFF#000000##FFFFFF
##27237C1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27237c;
/* rgb */ color: rgb(39, 35, 124);
/* oklch */ color: oklch(32.7% 0.145 276.8);
Tailwind
colors: {
  custom: {
    50: '#6d5fa3',
    500: '#27237c',
    950: '#000000',
  },
}
SCSS
$custom: #27237c;
$custom-light: #6d5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#27237c",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 242.697,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.327,
    "c": 0.14473,
    "h": 276.8
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#27237C
secondary
#AAAF4C
accent
#DF49D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #27237C

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

Preview Lab → · Contrast checker → · Palette generator →

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