#2B27A9#2B27A9

#2B27A9 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.3% C 0.197 H 273.3°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2B27A9
RGBrgb(43, 39, 169)
HSLhsl(242, 63%, 41%)
HSVhsv(242, 77%, 66%)
CMYKcmyk(74.6%, 76.9%, 0%, 33.7%)
CIE-LABlab(26.24, 44.82, -67.97)
CIE-LCHlch(26.24, 81.42, 303.40°)
OKLaboklab(38.35% 0.0114 -0.1967)
OKLCHoklch(38.35% 0.197 273.3)
XYZxyz(8.8808, 4.8283, 37.9923)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27A9 #A5A927
analogous
#2764A9 #2B27A9 #6C27A9
triadic
#2B27A9 #A92B27 #27A92B
tetradic
#2B27A9 #A92764 #A5A927 #27A96C
square
#2B27A9 #A92764 #A5A927 #27A96C
split-complementary
#2B27A9 #A96C27 #64A927
monochromatic
#121046 #1E1C77 #2B27A9 #403BD2 #716DDD

Accessibility & contrast

On white

10.68
#2B27A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2B27A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B27A9
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27A9#FFFFFF#000000##FFFFFF
##2B27A91.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#0038A7
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b27a9;
/* rgb */ color: rgb(43, 39, 169);
/* oklch */ color: oklch(38.3% 0.197 273.3);
Tailwind
colors: {
  custom: {
    50: '#7963c4',
    500: '#2b27a9',
    950: '#000000',
  },
}
SCSS
$custom: #2b27a9;
$custom-light: #7963c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27a9",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 241.846,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38345,
    "c": 0.19701,
    "h": 273.3
  },
  "luminance": 0.04829
}

Semantic roles & 50–950 ramp

primary
#2B27A9
secondary
#C1C468
accent
#E642E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2B27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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