#2F27B0#2F27B0

#2F27B0 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.4% C 0.204 H 274.2°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#2F27B0
RGBrgb(47, 39, 176)
HSLhsl(244, 64%, 42%)
HSVhsv(244, 78%, 69%)
CMYKcmyk(73.3%, 77.8%, 0%, 31%)
CIE-LABlab(27.27, 47.42, -70.47)
CIE-LCHlch(27.27, 84.94, 303.93°)
OKLaboklab(39.36% 0.0149 -0.2039)
OKLCHoklch(39.36% 0.204 274.2)
XYZxyz(9.7317, 5.1890, 41.5546)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27B0 #A8B027
analogous
#2763B0 #2F27B0 #7427B0
triadic
#2F27B0 #B02F27 #27B02F
tetradic
#2F27B0 #B02763 #A8B027 #27B074
square
#2F27B0 #B02763 #A8B027 #27B074
split-complementary
#2F27B0 #B07427 #63B027
monochromatic
#14114C #221C7E #2F27B0 #4840D5 #7872E0

Accessibility & contrast

On white

10.30
#2F27B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F27B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27B0
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27B0#FFFFFF#000000##FFFFFF
##2F27B01.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B4
Deuteranopia (green-blind)
#003AAE
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f27b0;
/* rgb */ color: rgb(47, 39, 176);
/* oklch */ color: oklch(39.4% 0.204 274.2);
Tailwind
colors: {
  custom: {
    50: '#7d64c9',
    500: '#2f27b0',
    950: '#000000',
  },
}
SCSS
$custom: #2f27b0;
$custom-light: #7d64c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27b0",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 243.504,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39362,
    "c": 0.2044,
    "h": 274.2
  },
  "luminance": 0.0519
}

Semantic roles & 50–950 ramp

primary
#2F27B0
secondary
#C1C76C
accent
#E741DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F27B0

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

Preview Lab → · Contrast checker → · Palette generator →

#2F27B0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva