#2827A6#2827A6

#2827A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.194 H 272.5°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2827A6
RGBrgb(40, 39, 166)
HSLhsl(240, 62%, 40%)
HSVhsv(240, 77%, 65%)
CMYKcmyk(75.9%, 76.5%, 0%, 34.9%)
CIE-LABlab(25.73, 43.57, -67.02)
CIE-LCHlch(25.73, 79.94, 303.03°)
OKLaboklab(37.84% 0.0084 -0.194)
OKLCHoklch(37.84% 0.194 272.5)
XYZxyz(8.4812, 4.6544, 36.5204)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827A6 #A5A627
analogous
#2766A6 #2827A6 #6727A6
triadic
#2827A6 #A62827 #27A628
tetradic
#2827A6 #A62766 #A5A627 #27A667
square
#2827A6 #A62766 #A5A627 #27A667
split-complementary
#2827A6 #A66727 #66A627
monochromatic
#101043 #1C1B74 #2827A6 #3B3AD1 #6C6BDC

Accessibility & contrast

On white

10.88
#2827A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2827A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827A6
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827A6#FFFFFF#000000##FFFFFF
##2827A61.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.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: #2827a6;
/* rgb */ color: rgb(40, 39, 166);
/* oklch */ color: oklch(37.8% 0.194 272.5);
Tailwind
colors: {
  custom: {
    50: '#7863c2',
    500: '#2827a6',
    950: '#000000',
  },
}
SCSS
$custom: #2827a6;
$custom-light: #7863c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2827a6",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 240.472,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37837,
    "c": 0.19414,
    "h": 272.5
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#2827A6
secondary
#C2C366
accent
#E543E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2827A6

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

Preview Lab → · Contrast checker → · Palette generator →

#2827A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva