#2B27A8#2B27A8

#2B27A8 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.196 H 273.4°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#2B27A8
RGBrgb(43, 39, 168)
HSLhsl(242, 62%, 41%)
HSVhsv(242, 77%, 66%)
CMYKcmyk(74.4%, 76.8%, 0%, 34.1%)
CIE-LABlab(26.13, 44.49, -67.55)
CIE-LCHlch(26.13, 80.89, 303.37°)
OKLaboklab(38.24% 0.0116 -0.1955)
OKLCHoklch(38.24% 0.196 273.4)
XYZxyz(8.7873, 4.7909, 37.4998)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B27A8 #A4A827
analogous
#2764A8 #2B27A8 #6B27A8
triadic
#2B27A8 #A82B27 #27A82B
tetradic
#2B27A8 #A82764 #A4A827 #27A86B
square
#2B27A8 #A82764 #A4A827 #27A86B
split-complementary
#2B27A8 #A86B27 #64A827
monochromatic
#121045 #1E1B76 #2B27A8 #3F3BD1 #706CDD

Accessibility & contrast

On white

10.72
#2B27A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2B27A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B27A8
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B27A8#FFFFFF#000000##FFFFFF
##2B27A81.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b27a8;
/* rgb */ color: rgb(43, 39, 168);
/* oklch */ color: oklch(38.2% 0.196 273.4);
Tailwind
colors: {
  custom: {
    50: '#7963c3',
    500: '#2b27a8',
    950: '#000000',
  },
}
SCSS
$custom: #2b27a8;
$custom-light: #7963c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b27a8",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 241.86,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38236,
    "c": 0.19579,
    "h": 273.4
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#2B27A8
secondary
#C1C367
accent
#E542E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2B27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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