#27258B#27258B

#27258B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.162 H 274.7°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#27258B
RGBrgb(39, 37, 139)
HSLhsl(241, 58%, 35%)
HSVhsv(241, 73%, 55%)
CMYKcmyk(71.9%, 73.4%, 0%, 45.5%)
CIE-LABlab(22.37, 35.44, -55.98)
CIE-LCHlch(22.37, 66.26, 302.33°)
OKLaboklab(34.57% 0.0132 -0.1618)
OKLCHoklch(34.57% 0.162 274.7)
XYZxyz(6.1569, 3.6180, 24.7950)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27258B #898B25
analogous
#25568B #27258B #5A258B
triadic
#27258B #8B2725 #258B27
tetradic
#27258B #8B2556 #898B25 #258B5A
square
#27258B #8B2556 #898B25 #258B5A
split-complementary
#27258B #8B5A25 #568B25
monochromatic
#0C0B2A #19185B #27258B #3532BB #5A58D3

Accessibility & contrast

On white

12.18
#27258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#27258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27258B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27258B#FFFFFF#000000##FFFFFF
##27258B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #27258b;
/* rgb */ color: rgb(39, 37, 139);
/* oklch */ color: oklch(34.6% 0.162 274.7);
Tailwind
colors: {
  custom: {
    50: '#7161ae',
    500: '#27258b',
    950: '#000000',
  },
}
SCSS
$custom: #27258b;
$custom-light: #7161ae;
$custom-dark: #000000;
JSON
{
  "hex": "#27258b",
  "rgb": {
    "r": 39,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 241.176,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34574,
    "c": 0.16239,
    "h": 274.7
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#27258B
secondary
#B5B755
accent
#E147DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #27258B

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

Preview Lab → · Contrast checker → · Palette generator →

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