#2F27B1#2F27B1

#2F27B1 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.5% C 0.206 H 274.1°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2F27B1
RGBrgb(47, 39, 177)
HSLhsl(243, 64%, 42%)
HSVhsv(243, 78%, 69%)
CMYKcmyk(73.4%, 78%, 0%, 30.6%)
CIE-LABlab(27.38, 47.74, -70.89)
CIE-LCHlch(27.38, 85.47, 303.96°)
OKLaboklab(39.47% 0.0147 -0.2051)
OKLCHoklch(39.47% 0.206 274.1)
XYZxyz(9.8310, 5.2287, 42.0776)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27B1 #A9B127
analogous
#2764B1 #2F27B1 #7427B1
triadic
#2F27B1 #B12F27 #27B12F
tetradic
#2F27B1 #B12764 #A9B127 #27B174
square
#2F27B1 #B12764 #A9B127 #27B174
split-complementary
#2F27B1 #B17427 #64B127
monochromatic
#14114D #221C7F #2F27B1 #4940D5 #7972E0

Accessibility & contrast

On white

10.26
#2F27B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F27B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27B1
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27B1#FFFFFF#000000##FFFFFF
##2F27B11.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B5
Deuteranopia (green-blind)
#003AAF
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f27b1;
/* rgb */ color: rgb(47, 39, 177);
/* oklch */ color: oklch(39.5% 0.206 274.1);
Tailwind
colors: {
  custom: {
    50: '#7d64ca',
    500: '#2f27b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f27b1;
$custom-light: #7d64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27b1",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 243.478,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39471,
    "c": 0.20558,
    "h": 274.1
  },
  "luminance": 0.0523
}

Semantic roles & 50–950 ramp

primary
#2F27B1
secondary
#C2C76D
accent
#E741DD
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F27B1

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

Preview Lab → · Contrast checker → · Palette generator →

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