#2B27A4#2B27A4

#2B27A4 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.191 H 273.7°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#2B27A4
RGBrgb(43, 39, 164)
HSLhsl(242, 62%, 40%)
HSVhsv(242, 76%, 64%)
CMYKcmyk(73.8%, 76.2%, 0%, 35.7%)
CIE-LABlab(25.70, 43.17, -65.85)
CIE-LCHlch(25.70, 78.74, 303.25°)
OKLaboklab(37.8% 0.0124 -0.1905)
OKLCHoklch(37.8% 0.191 273.7)
XYZxyz(8.4204, 4.6441, 35.5674)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27A4 #A0A427
analogous
#2762A4 #2B27A4 #6A27A4
triadic
#2B27A4 #A42B27 #27A42B
tetradic
#2B27A4 #A42762 #A0A427 #27A46A
square
#2B27A4 #A42762 #A0A427 #27A46A
split-complementary
#2B27A4 #A46A27 #62A427
monochromatic
#110F41 #1E1B73 #2B27A4 #3D38D0 #6E6ADC

Accessibility & contrast

On white

10.89
#2B27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2B27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B27A4
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27A4#FFFFFF#000000##FFFFFF
##2B27A41.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b27a4;
/* rgb */ color: rgb(43, 39, 164);
/* oklch */ color: oklch(37.8% 0.191 273.7);
Tailwind
colors: {
  custom: {
    50: '#7863c0',
    500: '#2b27a4',
    950: '#000000',
  },
}
SCSS
$custom: #2b27a4;
$custom-light: #7863c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27a4",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 241.92,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37801,
    "c": 0.19092,
    "h": 273.7
  },
  "luminance": 0.04645
}

Semantic roles & 50–950 ramp

primary
#2B27A4
secondary
#BFC265
accent
#E543E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2B27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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