#27238F#27238F

#27238F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.170 H 274.6°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#27238F
RGBrgb(39, 35, 143)
HSLhsl(242, 61%, 35%)
HSVhsv(242, 76%, 56%)
CMYKcmyk(72.7%, 75.5%, 0%, 43.9%)
CIE-LABlab(22.36, 38.01, -58.49)
CIE-LCHlch(22.36, 69.75, 303.02°)
OKLaboklab(34.7% 0.0136 -0.1691)
OKLCHoklch(34.7% 0.17 274.6)
XYZxyz(6.3940, 3.6159, 26.3423)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27238F #8B8F23
analogous
#23558F #27238F #5D238F
triadic
#27238F #8F2723 #238F27
tetradic
#27238F #8F2355 #8B8F23 #238F5D
square
#27238F #8F2355 #8B8F23 #238F5D
split-complementary
#27238F #8F5D23 #558F23
monochromatic
#0C0B2D #1A175E #27238F #342FC0 #5B57D6

Accessibility & contrast

On white

12.19
#27238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#27238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27238F
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27238F#FFFFFF#000000##FFFFFF
##27238F1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #27238f;
/* rgb */ color: rgb(39, 35, 143);
/* oklch */ color: oklch(34.7% 0.170 274.6);
Tailwind
colors: {
  custom: {
    50: '#725fb1',
    500: '#27238f',
    950: '#000000',
  },
}
SCSS
$custom: #27238f;
$custom-light: #725fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#27238f",
  "rgb": {
    "r": 39,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 242.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34696,
    "c": 0.16968,
    "h": 274.6
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#27238F
secondary
#B6BA54
accent
#E444DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #27238F

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

Preview Lab → · Contrast checker → · Palette generator →

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