#27237F#27237F

#27237F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.149 H 276.4°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#27237F
RGBrgb(39, 35, 127)
HSLhsl(243, 57%, 32%)
HSVhsv(243, 72%, 50%)
CMYKcmyk(69.3%, 72.4%, 0%, 50.2%)
CIE-LABlab(20.69, 32.46, -51.19)
CIE-LCHlch(20.69, 60.62, 302.38°)
OKLaboklab(33.01% 0.0166 -0.1478)
OKLCHoklch(33.01% 0.149 276.4)
XYZxyz(5.2672, 3.1652, 20.4079)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27237F #7B7F23
analogous
#234D7F #27237F #55237F
triadic
#27237F #7F2723 #237F27
tetradic
#27237F #7F234D #7B7F23 #237F55
square
#27237F #7F234D #7B7F23 #237F55
split-complementary
#27237F #7F5523 #4D7F23
monochromatic
#0A091F #18164F #27237F #3630AF #544ECE

Accessibility & contrast

On white

12.86
#27237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#27237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27237F
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27237F#FFFFFF#000000##FFFFFF
##27237F1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27237f;
/* rgb */ color: rgb(39, 35, 127);
/* oklch */ color: oklch(33.0% 0.149 276.4);
Tailwind
colors: {
  custom: {
    50: '#6e5fa5',
    500: '#27237f',
    950: '#000000',
  },
}
SCSS
$custom: #27237f;
$custom-light: #6e5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#27237f",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 242.609,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33007,
    "c": 0.14877,
    "h": 276.4
  },
  "luminance": 0.03166
}

Semantic roles & 50–950 ramp

primary
#27237F
secondary
#ADB14C
accent
#E048D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #27237F

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

Preview Lab → · Contrast checker → · Palette generator →

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