#2D27AF#2D27AF

#2D27AF is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.1% C 0.204 H 273.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#2D27AF
RGBrgb(45, 39, 175)
HSLhsl(243, 64%, 42%)
HSVhsv(243, 78%, 69%)
CMYKcmyk(74.3%, 77.7%, 0%, 31.4%)
CIE-LABlab(27.03, 46.93, -70.28)
CIE-LCHlch(27.03, 84.51, 303.74°)
OKLaboklab(39.13% 0.0126 -0.2033)
OKLCHoklch(39.13% 0.204 273.5)
XYZxyz(9.5430, 5.1031, 41.0312)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D27AF #A9AF27
analogous
#2765AF #2D27AF #7127AF
triadic
#2D27AF #AF2D27 #27AF2D
tetradic
#2D27AF #AF2765 #A9AF27 #27AF71
square
#2D27AF #AF2765 #A9AF27 #27AF71
split-complementary
#2D27AF #AF7127 #65AF27
monochromatic
#13114B #201C7D #2D27AF #463FD4 #7671DF

Accessibility & contrast

On white

10.39
#2D27AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2D27AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D27AF
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D27AF#FFFFFF#000000##FFFFFF
##2D27AF1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B3
Deuteranopia (green-blind)
#0039AD
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d27af;
/* rgb */ color: rgb(45, 39, 175);
/* oklch */ color: oklch(39.1% 0.204 273.5);
Tailwind
colors: {
  custom: {
    50: '#7c64c8',
    500: '#2d27af',
    950: '#000000',
  },
}
SCSS
$custom: #2d27af;
$custom-light: #7c64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d27af",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 242.647,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39126,
    "c": 0.20372,
    "h": 273.5
  },
  "luminance": 0.05104
}

Semantic roles & 50–950 ramp

primary
#2D27AF
secondary
#C2C66B
accent
#E741DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2D27AF

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

Preview Lab → · Contrast checker → · Palette generator →

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