#2827A8#2827A8

#2827A8 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.1% C 0.197 H 272.3°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2827A8
RGBrgb(40, 39, 168)
HSLhsl(240, 62%, 41%)
HSVhsv(240, 77%, 66%)
CMYKcmyk(76.2%, 76.8%, 0%, 34.1%)
CIE-LABlab(25.95, 44.24, -67.86)
CIE-LCHlch(25.95, 81.01, 303.10°)
OKLaboklab(38.06% 0.008 -0.1964)
OKLCHoklch(38.06% 0.197 272.3)
XYZxyz(8.6661, 4.7284, 37.4941)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827A8 #A7A827
analogous
#2766A8 #2827A8 #6827A8
triadic
#2827A8 #A82827 #27A828
tetradic
#2827A8 #A82766 #A7A827 #27A868
square
#2827A8 #A82766 #A7A827 #27A868
split-complementary
#2827A8 #A86827 #66A827
monochromatic
#101045 #1C1B76 #2827A8 #3C3BD1 #6D6CDD

Accessibility & contrast

On white

10.79
#2827A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2827A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827A8
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827A8#FFFFFF#000000##FFFFFF
##2827A81.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2827a8;
/* rgb */ color: rgb(40, 39, 168);
/* oklch */ color: oklch(38.1% 0.197 272.3);
Tailwind
colors: {
  custom: {
    50: '#7863c3',
    500: '#2827a8',
    950: '#000000',
  },
}
SCSS
$custom: #2827a8;
$custom-light: #7863c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2827a8",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 240.465,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38057,
    "c": 0.19658,
    "h": 272.3
  },
  "luminance": 0.04729
}

Semantic roles & 50–950 ramp

primary
#2827A8
secondary
#C3C367
accent
#E542E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2827A8

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

Preview Lab → · Contrast checker → · Palette generator →

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