#2F27B7#2F27B7

#2F27B7 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.213 H 273.6°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2F27B7
RGBrgb(47, 39, 183)
HSLhsl(243, 65%, 44%)
HSVhsv(243, 79%, 72%)
CMYKcmyk(74.3%, 78.7%, 0%, 28.2%)
CIE-LABlab(28.04, 49.63, -73.37)
CIE-LCHlch(28.04, 88.58, 304.08°)
OKLaboklab(40.13% 0.0133 -0.2123)
OKLCHoklch(40.13% 0.213 273.6)
XYZxyz(10.4422, 5.4732, 45.2967)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27B7 #AFB727
analogous
#2767B7 #2F27B7 #7727B7
triadic
#2F27B7 #B72F27 #27B72F
tetradic
#2F27B7 #B72767 #AFB727 #27B777
square
#2F27B7 #B72767 #AFB727 #27B777
split-complementary
#2F27B7 #B77727 #67B727
monochromatic
#151152 #221C85 #2F27B7 #4C44D7 #7C76E2

Accessibility & contrast

On white

10.02
#2F27B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F27B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27B7
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27B7#FFFFFF#000000##FFFFFF
##2F27B71.0010.022.0910.02
#FFFFFF10.021.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BB
Deuteranopia (green-blind)
#003BB5
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f27b7;
/* rgb */ color: rgb(47, 39, 183);
/* oklch */ color: oklch(40.1% 0.213 273.6);
Tailwind
colors: {
  custom: {
    50: '#7e64ce',
    500: '#2f27b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f27b7;
$custom-light: #7e64ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27b7",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 183
  },
  "hsl": {
    "h": 243.333,
    "s": 64.865,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40133,
    "c": 0.21267,
    "h": 273.6
  },
  "luminance": 0.05474
}

Semantic roles & 50–950 ramp

primary
#2F27B7
secondary
#C4C970
accent
#E840DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2F27B7

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

Preview Lab → · Contrast checker → · Palette generator →

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