#2D27B2#2D27B2

#2D27B2 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.5% C 0.207 H 273.3°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2D27B2
RGBrgb(45, 39, 178)
HSLhsl(243, 64%, 43%)
HSVhsv(243, 78%, 70%)
CMYKcmyk(74.7%, 78.1%, 0%, 30.2%)
CIE-LABlab(27.36, 47.89, -71.52)
CIE-LCHlch(27.36, 86.08, 303.81°)
OKLaboklab(39.46% 0.0119 -0.2069)
OKLCHoklch(39.46% 0.207 273.3)
XYZxyz(9.8409, 5.2223, 42.6002)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D27B2 #ACB227
analogous
#2766B2 #2D27B2 #7327B2
triadic
#2D27B2 #B22D27 #27B22D
tetradic
#2D27B2 #B22766 #ACB227 #27B273
square
#2D27B2 #B22766 #ACB227 #27B273
split-complementary
#2D27B2 #B27327 #66B227
monochromatic
#14114E #201C80 #2D27B2 #4741D5 #7873E0

Accessibility & contrast

On white

10.27
#2D27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2D27B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D27B2
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D27B2#FFFFFF#000000##FFFFFF
##2D27B21.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#003AB0
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d27b2;
/* rgb */ color: rgb(45, 39, 178);
/* oklch */ color: oklch(39.5% 0.207 273.3);
Tailwind
colors: {
  custom: {
    50: '#7c64ca',
    500: '#2d27b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d27b2;
$custom-light: #7c64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d27b2",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 242.59,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39457,
    "c": 0.20728,
    "h": 273.3
  },
  "luminance": 0.05223
}

Semantic roles & 50–950 ramp

primary
#2D27B2
secondary
#C4C86D
accent
#E741E0
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2D27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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