#2F27A4#2F27A4

#2F27A4 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.1% C 0.190 H 275.3°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2F27A4
RGBrgb(47, 39, 164)
HSLhsl(244, 62%, 40%)
HSVhsv(244, 76%, 64%)
CMYKcmyk(71.3%, 76.2%, 0%, 35.7%)
CIE-LABlab(25.97, 43.55, -65.40)
CIE-LCHlch(25.97, 78.57, 303.66°)
OKLaboklab(38.06% 0.0175 -0.1891)
OKLCHoklch(38.06% 0.19 275.3)
XYZxyz(8.5964, 4.7349, 35.5757)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27A4 #9CA427
analogous
#275EA4 #2F27A4 #6E27A4
triadic
#2F27A4 #A42F27 #27A42F
tetradic
#2F27A4 #A4275E #9CA427 #27A46E
square
#2F27A4 #A4275E #9CA427 #27A46E
split-complementary
#2F27A4 #A46E27 #5EA427
monochromatic
#130F41 #211B73 #2F27A4 #4238D0 #716ADC

Accessibility & contrast

On white

10.78
#2F27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F27A4
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27A4#FFFFFF#000000##FFFFFF
##2F27A41.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#0038A2
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f27a4;
/* rgb */ color: rgb(47, 39, 164);
/* oklch */ color: oklch(38.1% 0.190 275.3);
Tailwind
colors: {
  custom: {
    50: '#7a63c0',
    500: '#2f27a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f27a4;
$custom-light: #7a63c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27a4",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 243.84,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38062,
    "c": 0.1899,
    "h": 275.3
  },
  "luminance": 0.04736
}

Semantic roles & 50–950 ramp

primary
#2F27A4
secondary
#BCC265
accent
#E543DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2F27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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