#2B27AA#2B27AA

#2B27AA is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.5% C 0.198 H 273.2°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#2B27AA
RGBrgb(43, 39, 170)
HSLhsl(242, 63%, 41%)
HSVhsv(242, 77%, 67%)
CMYKcmyk(74.7%, 77.1%, 0%, 33.3%)
CIE-LABlab(26.35, 45.15, -68.40)
CIE-LCHlch(26.35, 81.95, 303.43°)
OKLaboklab(38.46% 0.0112 -0.1979)
OKLCHoklch(38.46% 0.198 273.2)
XYZxyz(8.9751, 4.8660, 38.4886)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27AA #A6AA27
analogous
#2764AA #2B27AA #6C27AA
triadic
#2B27AA #AA2B27 #27AA2B
tetradic
#2B27AA #AA2764 #A6AA27 #27AA6C
square
#2B27AA #AA2764 #A6AA27 #27AA6C
split-complementary
#2B27AA #AA6C27 #64AA27
monochromatic
#121046 #1E1C78 #2B27AA #413CD2 #716EDE

Accessibility & contrast

On white

10.64
#2B27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2B27AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B27AA
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27AA#FFFFFF#000000##FFFFFF
##2B27AA1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AE
Deuteranopia (green-blind)
#0038A8
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b27aa;
/* rgb */ color: rgb(43, 39, 170);
/* oklch */ color: oklch(38.5% 0.198 273.2);
Tailwind
colors: {
  custom: {
    50: '#7a64c5',
    500: '#2b27aa',
    950: '#000000',
  },
}
SCSS
$custom: #2b27aa;
$custom-light: #7a64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27aa",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 241.832,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38455,
    "c": 0.19823,
    "h": 273.2
  },
  "luminance": 0.04867
}

Semantic roles & 50–950 ramp

primary
#2B27AA
secondary
#C1C469
accent
#E642E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2B27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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