#2F27AE#2F27AE

#2F27AE is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.1% C 0.202 H 274.4°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2F27AE
RGBrgb(47, 39, 174)
HSLhsl(244, 63%, 42%)
HSVhsv(244, 78%, 68%)
CMYKcmyk(73%, 77.6%, 0%, 31.8%)
CIE-LABlab(27.05, 46.78, -69.64)
CIE-LCHlch(27.05, 83.89, 303.89°)
OKLaboklab(39.14% 0.0153 -0.2014)
OKLCHoklch(39.14% 0.202 274.4)
XYZxyz(9.5353, 5.1104, 40.5201)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27AE #A6AE27
analogous
#2762AE #2F27AE #7327AE
triadic
#2F27AE #AE2F27 #27AE2F
tetradic
#2F27AE #AE2762 #A6AE27 #27AE73
square
#2F27AE #AE2762 #A6AE27 #27AE73
split-complementary
#2F27AE #AE7327 #62AE27
monochromatic
#14114A #211C7C #2F27AE #473ED4 #7770DF

Accessibility & contrast

On white

10.38
#2F27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27AE
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27AE#FFFFFF#000000##FFFFFF
##2F27AE1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B2
Deuteranopia (green-blind)
#003AAC
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f27ae;
/* rgb */ color: rgb(47, 39, 174);
/* oklch */ color: oklch(39.1% 0.202 274.4);
Tailwind
colors: {
  custom: {
    50: '#7c64c7',
    500: '#2f27ae',
    950: '#000000',
  },
}
SCSS
$custom: #2f27ae;
$custom-light: #7c64c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27ae",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 243.556,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39143,
    "c": 0.20201,
    "h": 274.4
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

primary
#2F27AE
secondary
#C1C66B
accent
#E641DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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