#2A27A8#2A27A8

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

Color values

HEX#2A27A8
RGBrgb(42, 39, 168)
HSLhsl(241, 62%, 41%)
HSVhsv(241, 77%, 66%)
CMYKcmyk(75%, 76.8%, 0%, 34.1%)
CIE-LABlab(26.07, 44.41, -67.66)
CIE-LCHlch(26.07, 80.93, 303.28°)
OKLaboklab(38.17% 0.0104 -0.1958)
OKLCHoklch(38.17% 0.196 273)
XYZxyz(8.7459, 4.7695, 37.4979)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27A8 #A5A827
analogous
#2765A8 #2A27A8 #6A27A8
triadic
#2A27A8 #A82A27 #27A82A
tetradic
#2A27A8 #A82765 #A5A827 #27A86A
square
#2A27A8 #A82765 #A5A827 #27A86A
split-complementary
#2A27A8 #A86A27 #65A827
monochromatic
#111045 #1E1B76 #2A27A8 #3E3BD1 #6F6CDD

Accessibility & contrast

On white

10.75
#2A27A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A27A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27A8
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27A8#FFFFFF#000000##FFFFFF
##2A27A81.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a27a8;
/* rgb */ color: rgb(42, 39, 168);
/* oklch */ color: oklch(38.2% 0.196 273.0);
Tailwind
colors: {
  custom: {
    50: '#7963c3',
    500: '#2a27a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a27a8;
$custom-light: #7963c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27a8",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 241.395,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38175,
    "c": 0.19605,
    "h": 273
  },
  "luminance": 0.0477
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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