#2F27A0#2F27A0

#2F27A0 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.185 H 275.7°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#2F27A0
RGBrgb(47, 39, 160)
HSLhsl(244, 61%, 39%)
HSVhsv(244, 76%, 63%)
CMYKcmyk(70.6%, 75.6%, 0%, 37.3%)
CIE-LABlab(25.54, 42.24, -63.67)
CIE-LCHlch(25.54, 76.41, 303.56°)
OKLaboklab(37.64% 0.0184 -0.184)
OKLCHoklch(37.64% 0.185 275.7)
XYZxyz(8.2409, 4.5927, 33.7031)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27A0 #98A027
analogous
#275CA0 #2F27A0 #6C27A0
triadic
#2F27A0 #A02F27 #27A02F
tetradic
#2F27A0 #A0275C #98A027 #27A06C
square
#2F27A0 #A0275C #98A027 #27A06C
split-complementary
#2F27A0 #A06C27 #5CA027
monochromatic
#120F3E #211B6F #2F27A0 #4036CE #6F67DA

Accessibility & contrast

On white

10.95
#2F27A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F27A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27A0
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27A0#FFFFFF#000000##FFFFFF
##2F27A01.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00379E
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f27a0;
/* rgb */ color: rgb(47, 39, 160);
/* oklch */ color: oklch(37.6% 0.185 275.7);
Tailwind
colors: {
  custom: {
    50: '#7963bd',
    500: '#2f27a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f27a0;
$custom-light: #7963bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27a0",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 243.967,
    "s": 60.804,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37636,
    "c": 0.18497,
    "h": 275.7
  },
  "luminance": 0.04593
}

Semantic roles & 50–950 ramp

primary
#2F27A0
secondary
#BAC063
accent
#E444D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F27A0

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

Preview Lab → · Contrast checker → · Palette generator →

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