#2B27B2#2B27B2

#2B27B2 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.3% C 0.208 H 272.6°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#2B27B2
RGBrgb(43, 39, 178)
HSLhsl(242, 64%, 43%)
HSVhsv(242, 78%, 70%)
CMYKcmyk(75.8%, 78.1%, 0%, 30.2%)
CIE-LABlab(27.24, 47.74, -71.73)
CIE-LCHlch(27.24, 86.16, 303.64°)
OKLaboklab(39.34% 0.0095 -0.2076)
OKLCHoklch(39.34% 0.208 272.6)
XYZxyz(9.7550, 5.1779, 42.5962)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27B2 #AEB227
analogous
#2768B2 #2B27B2 #7127B2
triadic
#2B27B2 #B22B27 #27B22B
tetradic
#2B27B2 #B22768 #AEB227 #27B271
square
#2B27B2 #B22768 #AEB227 #27B271
split-complementary
#2B27B2 #B27127 #68B227
monochromatic
#13114E #1F1C80 #2B27B2 #4541D5 #7673E0

Accessibility & contrast

On white

10.32
#2B27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B27B2
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27B2#FFFFFF#000000##FFFFFF
##2B27B21.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#0039B0
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b27b2;
/* rgb */ color: rgb(43, 39, 178);
/* oklch */ color: oklch(39.3% 0.208 272.6);
Tailwind
colors: {
  custom: {
    50: '#7c64ca',
    500: '#2b27b2',
    950: '#000000',
  },
}
SCSS
$custom: #2b27b2;
$custom-light: #7c64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27b2",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 241.727,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39338,
    "c": 0.20781,
    "h": 272.6
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

primary
#2B27B2
secondary
#C5C86D
accent
#E741E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2B27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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