#2B27A2#2B27A2

#2B27A2 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.188 H 273.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#2B27A2
RGBrgb(43, 39, 162)
HSLhsl(242, 61%, 39%)
HSVhsv(242, 76%, 64%)
CMYKcmyk(73.5%, 75.9%, 0%, 36.5%)
CIE-LABlab(25.48, 42.51, -64.99)
CIE-LCHlch(25.48, 77.66, 303.19°)
OKLaboklab(37.58% 0.0128 -0.188)
OKLCHoklch(37.58% 0.188 273.9)
XYZxyz(8.2412, 4.5724, 34.6237)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27A2 #9EA227
analogous
#2761A2 #2B27A2 #6927A2
triadic
#2B27A2 #A22B27 #27A22B
tetradic
#2B27A2 #A22761 #9EA227 #27A269
square
#2B27A2 #A22761 #9EA227 #27A269
split-complementary
#2B27A2 #A26927 #61A227
monochromatic
#110F3F #1E1B71 #2B27A2 #3C37CF #6C69DB

Accessibility & contrast

On white

10.97
#2B27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B27A2
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27A2#FFFFFF#000000##FFFFFF
##2B27A21.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0036A0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b27a2;
/* rgb */ color: rgb(43, 39, 162);
/* oklch */ color: oklch(37.6% 0.188 273.9);
Tailwind
colors: {
  custom: {
    50: '#7863bf',
    500: '#2b27a2',
    950: '#000000',
  },
}
SCSS
$custom: #2b27a2;
$custom-light: #7863bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27a2",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 241.951,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37584,
    "c": 0.18845,
    "h": 273.9
  },
  "luminance": 0.04573
}

Semantic roles & 50–950 ramp

primary
#2B27A2
secondary
#BEC164
accent
#E443DF
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2B27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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