#2B27B1#2B27B1

#2B27B1 is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.2% C 0.207 H 272.7°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#2B27B1
RGBrgb(43, 39, 177)
HSLhsl(242, 64%, 42%)
HSVhsv(242, 78%, 69%)
CMYKcmyk(75.7%, 78%, 0%, 30.6%)
CIE-LABlab(27.12, 47.42, -71.32)
CIE-LCHlch(27.12, 85.64, 303.62°)
OKLaboklab(39.23% 0.0097 -0.2064)
OKLCHoklch(39.23% 0.207 272.7)
XYZxyz(9.6549, 5.1379, 42.0693)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27B1 #ADB127
analogous
#2768B1 #2B27B1 #7027B1
triadic
#2B27B1 #B12B27 #27B12B
tetradic
#2B27B1 #B12768 #ADB127 #27B170
square
#2B27B1 #B12768 #ADB127 #27B170
split-complementary
#2B27B1 #B17027 #68B127
monochromatic
#13114D #1F1C7F #2B27B1 #4540D5 #7672E0

Accessibility & contrast

On white

10.36
#2B27B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2B27B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B27B1
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27B1#FFFFFF#000000##FFFFFF
##2B27B11.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B5
Deuteranopia (green-blind)
#0039AF
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b27b1;
/* rgb */ color: rgb(43, 39, 177);
/* oklch */ color: oklch(39.2% 0.207 272.7);
Tailwind
colors: {
  custom: {
    50: '#7b64ca',
    500: '#2b27b1',
    950: '#000000',
  },
}
SCSS
$custom: #2b27b1;
$custom-light: #7b64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27b1",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 241.739,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39227,
    "c": 0.20662,
    "h": 272.7
  },
  "luminance": 0.05139
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B27B1

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

Preview Lab → · Contrast checker → · Palette generator →

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