#2827AF#2827AF

#2827AF is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 38.8% C 0.205 H 271.8°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#2827AF
RGBrgb(40, 39, 175)
HSLhsl(240, 64%, 42%)
HSVhsv(240, 78%, 69%)
CMYKcmyk(77.1%, 77.7%, 0%, 31.4%)
CIE-LABlab(26.72, 46.54, -70.79)
CIE-LCHlch(26.72, 84.72, 303.32°)
OKLaboklab(38.83% 0.0066 -0.2049)
OKLCHoklch(38.83% 0.205 271.8)
XYZxyz(9.3358, 4.9963, 41.0215)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2827AF #AEAF27
analogous
#276AAF #2827AF #6C27AF
triadic
#2827AF #AF2827 #27AF28
tetradic
#2827AF #AF276A #AEAF27 #27AF6C
square
#2827AF #AF276A #AEAF27 #27AF6C
split-complementary
#2827AF #AF6C27 #6AAF27
monochromatic
#11114B #1D1C7D #2827AF #403FD4 #7271DF

Accessibility & contrast

On white

10.50
#2827AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2827AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2827AF
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2827AF#FFFFFF#000000##FFFFFF
##2827AF1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B3
Deuteranopia (green-blind)
#0038AD
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2827af;
/* rgb */ color: rgb(40, 39, 175);
/* oklch */ color: oklch(38.8% 0.205 271.8);
Tailwind
colors: {
  custom: {
    50: '#7a64c8',
    500: '#2827af',
    950: '#000000',
  },
}
SCSS
$custom: #2827af;
$custom-light: #7a64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2827af",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 240.441,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.38833,
    "c": 0.20502,
    "h": 271.8
  },
  "luminance": 0.04997
}

Semantic roles & 50–950 ramp

primary
#2827AF
secondary
#C6C66B
accent
#E741E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2827AF

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

Preview Lab → · Contrast checker → · Palette generator →

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