#27237B#27237B

#27237B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.143 H 276.9°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#27237B
RGBrgb(39, 35, 123)
HSLhsl(243, 56%, 31%)
HSVhsv(243, 72%, 48%)
CMYKcmyk(68.3%, 71.5%, 0%, 51.8%)
CIE-LABlab(20.29, 31.05, -49.31)
CIE-LCHlch(20.29, 58.27, 302.20°)
OKLaboklab(32.6% 0.0172 -0.1423)
OKLCHoklch(32.6% 0.143 276.9)
XYZxyz(5.0117, 3.0630, 19.0622)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27237B #777B23
analogous
#234B7B #27237B #53237B
triadic
#27237B #7B2723 #237B27
tetradic
#27237B #7B234B #777B23 #237B53
square
#27237B #7B234B #777B23 #237B53
split-complementary
#27237B #7B5323 #4B7B23
monochromatic
#09081C #18154B #27237B #3631AB #524CCC

Accessibility & contrast

On white

13.02
#27237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#27237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27237B
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27237B#FFFFFF#000000##FFFFFF
##27237B1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27237b;
/* rgb */ color: rgb(39, 35, 123);
/* oklch */ color: oklch(32.6% 0.143 276.9);
Tailwind
colors: {
  custom: {
    50: '#6d5fa2',
    500: '#27237b',
    950: '#000000',
  },
}
SCSS
$custom: #27237b;
$custom-light: #6d5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#27237b",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 242.727,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32599,
    "c": 0.14338,
    "h": 276.9
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #27237B

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

Preview Lab → · Contrast checker → · Palette generator →

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