#2B27A6#2B27A6

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

Color values

HEX#2B27A6
RGBrgb(43, 39, 166)
HSLhsl(242, 62%, 40%)
HSVhsv(242, 77%, 65%)
CMYKcmyk(74.1%, 76.5%, 0%, 34.9%)
CIE-LABlab(25.91, 43.83, -66.70)
CIE-LCHlch(25.91, 79.82, 303.31°)
OKLaboklab(38.02% 0.012 -0.193)
OKLCHoklch(38.02% 0.193 273.6)
XYZxyz(8.6024, 4.7169, 36.5261)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27A6 #A2A627
analogous
#2762A6 #2B27A6 #6B27A6
triadic
#2B27A6 #A62B27 #27A62B
tetradic
#2B27A6 #A62762 #A2A627 #27A66B
square
#2B27A6 #A62762 #A2A627 #27A66B
split-complementary
#2B27A6 #A66B27 #62A627
monochromatic
#111043 #1E1B74 #2B27A6 #3E3AD1 #6F6BDC

Accessibility & contrast

On white

10.80
#2B27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B27A6
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27A6#FFFFFF#000000##FFFFFF
##2B27A61.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b27a6;
/* rgb */ color: rgb(43, 39, 166);
/* oklch */ color: oklch(38.0% 0.193 273.6);
Tailwind
colors: {
  custom: {
    50: '#7963c2',
    500: '#2b27a6',
    950: '#000000',
  },
}
SCSS
$custom: #2b27a6;
$custom-light: #7963c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27a6",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 241.89,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38018,
    "c": 0.19336,
    "h": 273.6
  },
  "luminance": 0.04718
}

Semantic roles & 50–950 ramp

primary
#2B27A6
secondary
#C0C366
accent
#E543E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2B27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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