#2F27A6#2F27A6

#2F27A6 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.3% C 0.192 H 275.1°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2F27A6
RGBrgb(47, 39, 166)
HSLhsl(244, 62%, 40%)
HSVhsv(244, 77%, 65%)
CMYKcmyk(71.7%, 76.5%, 0%, 34.9%)
CIE-LABlab(26.18, 44.20, -66.25)
CIE-LCHlch(26.18, 79.65, 303.71°)
OKLaboklab(38.28% 0.0171 -0.1916)
OKLCHoklch(38.28% 0.192 275.1)
XYZxyz(8.7785, 4.8077, 36.5343)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27A6 #9EA627
analogous
#275EA6 #2F27A6 #6F27A6
triadic
#2F27A6 #A62F27 #27A62F
tetradic
#2F27A6 #A6275E #9EA627 #27A66F
square
#2F27A6 #A6275E #9EA627 #27A66F
split-complementary
#2F27A6 #A66F27 #5EA627
monochromatic
#131043 #211B74 #2F27A6 #433AD1 #726BDC

Accessibility & contrast

On white

10.70
#2F27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27A6
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27A6#FFFFFF#000000##FFFFFF
##2F27A61.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f27a6;
/* rgb */ color: rgb(47, 39, 166);
/* oklch */ color: oklch(38.3% 0.192 275.1);
Tailwind
colors: {
  custom: {
    50: '#7a64c2',
    500: '#2f27a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f27a6;
$custom-light: #7a64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27a6",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 243.78,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38276,
    "c": 0.19234,
    "h": 275.1
  },
  "luminance": 0.04809
}

Semantic roles & 50–950 ramp

primary
#2F27A6
secondary
#BDC366
accent
#E543DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2F27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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