#2D27A3#2D27A3

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

Color values

HEX#2D27A3
RGBrgb(45, 39, 163)
HSLhsl(243, 61%, 40%)
HSVhsv(243, 76%, 64%)
CMYKcmyk(72.4%, 76.1%, 0%, 36.1%)
CIE-LABlab(25.72, 43.03, -65.20)
CIE-LCHlch(25.72, 78.12, 303.42°)
OKLaboklab(37.82% 0.0152 -0.1886)
OKLCHoklch(37.82% 0.189 274.6)
XYZxyz(8.4164, 4.6524, 35.0977)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D27A3 #9DA327
analogous
#275FA3 #2D27A3 #6B27A3
triadic
#2D27A3 #A32D27 #27A32D
tetradic
#2D27A3 #A3275F #9DA327 #27A36B
square
#2D27A3 #A3275F #9DA327 #27A36B
split-complementary
#2D27A3 #A36B27 #5FA327
monochromatic
#120F40 #1F1B72 #2D27A3 #3F38CF #6F69DB

Accessibility & contrast

On white

10.88
#2D27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2D27A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D27A3
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D27A3#FFFFFF#000000##FFFFFF
##2D27A31.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d27a3;
/* rgb */ color: rgb(45, 39, 163);
/* oklch */ color: oklch(37.8% 0.189 274.6);
Tailwind
colors: {
  custom: {
    50: '#7963bf',
    500: '#2d27a3',
    950: '#000000',
  },
}
SCSS
$custom: #2d27a3;
$custom-light: #7963bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d27a3",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 242.903,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37821,
    "c": 0.18917,
    "h": 274.6
  },
  "luminance": 0.04653
}

Semantic roles & 50–950 ramp

primary
#2D27A3
secondary
#BDC164
accent
#E443DD
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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