#2F27A5#2F27A5

#2F27A5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.191 H 275.2°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#2F27A5
RGBrgb(47, 39, 165)
HSLhsl(244, 62%, 40%)
HSVhsv(244, 76%, 65%)
CMYKcmyk(71.5%, 76.4%, 0%, 35.3%)
CIE-LABlab(26.07, 43.88, -65.83)
CIE-LCHlch(26.07, 79.11, 303.69°)
OKLaboklab(38.17% 0.0173 -0.1903)
OKLCHoklch(38.17% 0.191 275.2)
XYZxyz(8.6871, 4.7712, 36.0531)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27A5 #9DA527
analogous
#275EA5 #2F27A5 #6E27A5
triadic
#2F27A5 #A52F27 #27A52F
tetradic
#2F27A5 #A5275E #9DA527 #27A56E
square
#2F27A5 #A5275E #9DA527 #27A56E
split-complementary
#2F27A5 #A56E27 #5EA527
monochromatic
#131042 #211B74 #2F27A5 #4339D0 #726ADC

Accessibility & contrast

On white

10.74
#2F27A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F27A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27A5
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27A5#FFFFFF#000000##FFFFFF
##2F27A51.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f27a5;
/* rgb */ color: rgb(47, 39, 165);
/* oklch */ color: oklch(38.2% 0.191 275.2);
Tailwind
colors: {
  custom: {
    50: '#7a63c1',
    500: '#2f27a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f27a5;
$custom-light: #7a63c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27a5",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 243.81,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.38169,
    "c": 0.19113,
    "h": 275.2
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#2F27A5
secondary
#BCC266
accent
#E543DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2F27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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