#2B27B8#2B27B8

#2B27B8 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.0% C 0.215 H 272.2°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2B27B8
RGBrgb(43, 39, 184)
HSLhsl(242, 65%, 44%)
HSVhsv(242, 79%, 72%)
CMYKcmyk(76.6%, 78.8%, 0%, 27.8%)
CIE-LABlab(27.91, 49.65, -74.19)
CIE-LCHlch(27.91, 89.27, 303.79°)
OKLaboklab(40.01% 0.0082 -0.2147)
OKLCHoklch(40.01% 0.215 272.2)
XYZxyz(10.3706, 5.4242, 45.8385)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27B8 #B4B827
analogous
#276BB8 #2B27B8 #7327B8
triadic
#2B27B8 #B82B27 #27B82B
tetradic
#2B27B8 #B8276B #B4B827 #27B873
square
#2B27B8 #B8276B #B4B827 #27B873
split-complementary
#2B27B8 #B87327 #6BB827
monochromatic
#131253 #1F1C86 #2B27B8 #4945D8 #7A77E2

Accessibility & contrast

On white

10.07
#2B27B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2B27B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B27B8
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27B8#FFFFFF#000000##FFFFFF
##2B27B81.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BC
Deuteranopia (green-blind)
#003BB6
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2b27b8;
/* rgb */ color: rgb(43, 39, 184);
/* oklch */ color: oklch(40.0% 0.215 272.2);
Tailwind
colors: {
  custom: {
    50: '#7d64cf',
    500: '#2b27b8',
    950: '#000000',
  },
}
SCSS
$custom: #2b27b8;
$custom-light: #7d64cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27b8",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 184
  },
  "hsl": {
    "h": 241.655,
    "s": 65.022,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40008,
    "c": 0.21488,
    "h": 272.2
  },
  "luminance": 0.05425
}

Semantic roles & 50–950 ramp

primary
#2B27B8
secondary
#C7CA71
accent
#E840E3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2B27B8

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

Preview Lab → · Contrast checker → · Palette generator →

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