#2B27A1#2B27A1

#2B27A1 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.187 H 274.0°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#2B27A1
RGBrgb(43, 39, 161)
HSLhsl(242, 61%, 39%)
HSVhsv(242, 76%, 63%)
CMYKcmyk(73.3%, 75.8%, 0%, 36.9%)
CIE-LABlab(25.37, 42.18, -64.56)
CIE-LCHlch(25.37, 77.12, 303.16°)
OKLaboklab(37.48% 0.013 -0.1868)
OKLCHoklch(37.48% 0.187 274)
XYZxyz(8.1527, 4.5370, 34.1574)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27A1 #9DA127
analogous
#2760A1 #2B27A1 #6827A1
triadic
#2B27A1 #A12B27 #27A12B
tetradic
#2B27A1 #A12760 #9DA127 #27A168
square
#2B27A1 #A12760 #9DA127 #27A168
split-complementary
#2B27A1 #A16827 #60A127
monochromatic
#110F3E #1E1B70 #2B27A1 #3C37CE #6C68DA

Accessibility & contrast

On white

11.01
#2B27A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2B27A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B27A1
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27A1#FFFFFF#000000##FFFFFF
##2B27A11.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b27a1;
/* rgb */ color: rgb(43, 39, 161);
/* oklch */ color: oklch(37.5% 0.187 274.0);
Tailwind
colors: {
  custom: {
    50: '#7763be',
    500: '#2b27a1',
    950: '#000000',
  },
}
SCSS
$custom: #2b27a1;
$custom-light: #7763be;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27a1",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 241.967,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37476,
    "c": 0.18721,
    "h": 274
  },
  "luminance": 0.04538
}

Semantic roles & 50–950 ramp

primary
#2B27A1
secondary
#BDC063
accent
#E444DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2B27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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