#2B27A3#2B27A3

#2B27A3 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.190 H 273.8°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#2B27A3
RGBrgb(43, 39, 163)
HSLhsl(242, 61%, 40%)
HSVhsv(242, 76%, 64%)
CMYKcmyk(73.6%, 76.1%, 0%, 36.1%)
CIE-LABlab(25.59, 42.84, -65.42)
CIE-LCHlch(25.59, 78.20, 303.22°)
OKLaboklab(37.69% 0.0126 -0.1893)
OKLCHoklch(37.69% 0.19 273.8)
XYZxyz(8.3304, 4.6081, 35.0937)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27A3 #9FA327
analogous
#2761A3 #2B27A3 #6927A3
triadic
#2B27A3 #A32B27 #27A32B
tetradic
#2B27A3 #A32761 #9FA327 #27A369
square
#2B27A3 #A32761 #9FA327 #27A369
split-complementary
#2B27A3 #A36927 #61A327
monochromatic
#110F40 #1E1B72 #2B27A3 #3D38CF #6D69DB

Accessibility & contrast

On white

10.93
#2B27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2B27A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B27A3
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27A3#FFFFFF#000000##FFFFFF
##2B27A31.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#0037A1
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b27a3;
/* rgb */ color: rgb(43, 39, 163);
/* oklch */ color: oklch(37.7% 0.190 273.8);
Tailwind
colors: {
  custom: {
    50: '#7863c0',
    500: '#2b27a3',
    950: '#000000',
  },
}
SCSS
$custom: #2b27a3;
$custom-light: #7863c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27a3",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 241.935,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37692,
    "c": 0.18968,
    "h": 273.8
  },
  "luminance": 0.04609
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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