#2D27A5#2D27A5

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

Color values

HEX#2D27A5
RGBrgb(45, 39, 165)
HSLhsl(243, 62%, 40%)
HSVhsv(243, 76%, 65%)
CMYKcmyk(72.7%, 76.4%, 0%, 35.3%)
CIE-LABlab(25.94, 43.69, -66.06)
CIE-LCHlch(25.94, 79.20, 303.48°)
OKLaboklab(38.04% 0.0147 -0.1911)
OKLCHoklch(38.04% 0.192 274.4)
XYZxyz(8.5970, 4.7247, 36.0489)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D27A5 #9FA527
analogous
#2760A5 #2D27A5 #6C27A5
triadic
#2D27A5 #A52D27 #27A52D
tetradic
#2D27A5 #A52760 #9FA527 #27A56C
square
#2D27A5 #A52760 #9FA527 #27A56C
split-complementary
#2D27A5 #A56C27 #60A527
monochromatic
#121042 #1F1B74 #2D27A5 #4039D0 #706ADC

Accessibility & contrast

On white

10.80
#2D27A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D27A5
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D27A5#FFFFFF#000000##FFFFFF
##2D27A51.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d27a5;
/* rgb */ color: rgb(45, 39, 165);
/* oklch */ color: oklch(38.0% 0.192 274.4);
Tailwind
colors: {
  custom: {
    50: '#7963c1',
    500: '#2d27a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d27a5;
$custom-light: #7963c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d27a5",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 242.857,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.38037,
    "c": 0.19163,
    "h": 274.4
  },
  "luminance": 0.04726
}

Semantic roles & 50–950 ramp

primary
#2D27A5
secondary
#BEC266
accent
#E543DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2D27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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