#2F27A3#2F27A3

#2F27A3 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.189 H 275.4°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#2F27A3
RGBrgb(47, 39, 163)
HSLhsl(244, 61%, 40%)
HSVhsv(244, 76%, 64%)
CMYKcmyk(71.2%, 76.1%, 0%, 36.1%)
CIE-LABlab(25.86, 43.23, -64.97)
CIE-LCHlch(25.86, 78.03, 303.64°)
OKLaboklab(37.96% 0.0178 -0.1878)
OKLCHoklch(37.96% 0.189 275.4)
XYZxyz(8.5065, 4.6989, 35.1019)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27A3 #9BA327
analogous
#275DA3 #2F27A3 #6D27A3
triadic
#2F27A3 #A32F27 #27A32F
tetradic
#2F27A3 #A3275D #9BA327 #27A36D
square
#2F27A3 #A3275D #9BA327 #27A36D
split-complementary
#2F27A3 #A36D27 #5DA327
monochromatic
#130F40 #211B72 #2F27A3 #4238CF #7169DB

Accessibility & contrast

On white

10.82
#2F27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F27A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27A3
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27A3#FFFFFF#000000##FFFFFF
##2F27A31.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A7
Deuteranopia (green-blind)
#0038A1
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f27a3;
/* rgb */ color: rgb(47, 39, 163);
/* oklch */ color: oklch(38.0% 0.189 275.4);
Tailwind
colors: {
  custom: {
    50: '#7963bf',
    500: '#2f27a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f27a3;
$custom-light: #7963bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27a3",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 243.871,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37955,
    "c": 0.18867,
    "h": 275.4
  },
  "luminance": 0.047
}

Semantic roles & 50–950 ramp

primary
#2F27A3
secondary
#BBC164
accent
#E443DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2F27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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