#2B27A5#2B27A5

#2B27A5 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.192 H 273.6°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2B27A5
RGBrgb(43, 39, 165)
HSLhsl(242, 62%, 40%)
HSVhsv(242, 76%, 65%)
CMYKcmyk(73.9%, 76.4%, 0%, 35.3%)
CIE-LABlab(25.80, 43.50, -66.28)
CIE-LCHlch(25.80, 79.28, 303.28°)
OKLaboklab(37.91% 0.0122 -0.1917)
OKLCHoklch(37.91% 0.192 273.6)
XYZxyz(8.5110, 4.6804, 36.0449)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27A5 #A1A527
analogous
#2762A5 #2B27A5 #6A27A5
triadic
#2B27A5 #A52B27 #27A52B
tetradic
#2B27A5 #A52762 #A1A527 #27A56A
square
#2B27A5 #A52762 #A1A527 #27A56A
split-complementary
#2B27A5 #A56A27 #62A527
monochromatic
#111042 #1E1B74 #2B27A5 #3E39D0 #6E6ADC

Accessibility & contrast

On white

10.85
#2B27A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2B27A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B27A5
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27A5#FFFFFF#000000##FFFFFF
##2B27A51.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b27a5;
/* rgb */ color: rgb(43, 39, 165);
/* oklch */ color: oklch(37.9% 0.192 273.6);
Tailwind
colors: {
  custom: {
    50: '#7863c1',
    500: '#2b27a5',
    950: '#000000',
  },
}
SCSS
$custom: #2b27a5;
$custom-light: #7863c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27a5",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 241.905,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.37909,
    "c": 0.19214,
    "h": 273.6
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

primary
#2B27A5
secondary
#BFC266
accent
#E543E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2B27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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