#2823A1#2823A1

#2823A1 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.192 H 273.3°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#2823A1
RGBrgb(40, 35, 161)
HSLhsl(242, 64%, 38%)
HSVhsv(242, 78%, 63%)
CMYKcmyk(75.2%, 78.3%, 0%, 36.9%)
CIE-LABlab(24.40, 44.12, -66.17)
CIE-LCHlch(24.40, 79.53, 303.69°)
OKLaboklab(36.74% 0.0111 -0.1915)
OKLCHoklch(36.74% 0.192 273.3)
XYZxyz(7.9070, 4.2256, 34.1102)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2823A1 #9CA123
analogous
#235DA1 #2823A1 #6723A1
triadic
#2823A1 #A12823 #23A128
tetradic
#2823A1 #A1235D #9CA123 #23A167
square
#2823A1 #A1235D #9CA123 #23A167
split-complementary
#2823A1 #A16723 #5DA123
monochromatic
#0F0D3C #1C186F #2823A1 #362FD2 #6762DD

Accessibility & contrast

On white

11.38
#2823A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2823A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2823A1
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2823A1#FFFFFF#000000##FFFFFF
##2823A11.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2823a1;
/* rgb */ color: rgb(40, 35, 161);
/* oklch */ color: oklch(36.7% 0.192 273.3);
Tailwind
colors: {
  custom: {
    50: '#7760be',
    500: '#2823a1',
    950: '#000000',
  },
}
SCSS
$custom: #2823a1;
$custom-light: #7760be;
$custom-dark: #000000;
JSON
{
  "hex": "#2823a1",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 161
  },
  "hsl": {
    "h": 242.381,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36742,
    "c": 0.19178,
    "h": 273.3
  },
  "luminance": 0.04226
}

Semantic roles & 50–950 ramp

primary
#2823A1
secondary
#BEC25E
accent
#E741E1
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2823A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2823A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva