#27237D#27237D

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

Color values

HEX#27237D
RGBrgb(39, 35, 125)
HSLhsl(243, 56%, 31%)
HSVhsv(243, 72%, 49%)
CMYKcmyk(68.8%, 72%, 0%, 51%)
CIE-LABlab(20.49, 31.76, -50.25)
CIE-LCHlch(20.49, 59.45, 302.29°)
OKLaboklab(32.8% 0.0169 -0.1451)
OKLCHoklch(32.8% 0.146 276.6)
XYZxyz(5.1382, 3.1136, 19.7283)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27237D #797D23
analogous
#234C7D #27237D #54237D
triadic
#27237D #7D2723 #237D27
tetradic
#27237D #7D234C #797D23 #237D54
square
#27237D #7D234C #797D23 #237D54
split-complementary
#27237D #7D5423 #4C7D23
monochromatic
#09081D #18164D #27237D #3630AD #534DCD

Accessibility & contrast

On white

12.94
#27237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27237D
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27237D#FFFFFF#000000##FFFFFF
##27237D1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #27237d;
/* rgb */ color: rgb(39, 35, 125);
/* oklch */ color: oklch(32.8% 0.146 276.6);
Tailwind
colors: {
  custom: {
    50: '#6e5fa4',
    500: '#27237d',
    950: '#000000',
  },
}
SCSS
$custom: #27237d;
$custom-light: #6e5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#27237d",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 242.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32802,
    "c": 0.14608,
    "h": 276.6
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #27237D

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

Preview Lab → · Contrast checker → · Palette generator →

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