#2823B1#2823B1

#2823B1 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.6% C 0.211 H 272.0°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2823B1
RGBrgb(40, 35, 177)
HSLhsl(242, 67%, 42%)
HSVhsv(242, 80%, 69%)
CMYKcmyk(77.4%, 80.2%, 0%, 30.6%)
CIE-LABlab(26.23, 49.25, -72.80)
CIE-LCHlch(26.23, 87.89, 304.08°)
OKLaboklab(38.56% 0.0075 -0.2107)
OKLCHoklch(38.56% 0.211 272)
XYZxyz(9.4092, 4.8265, 42.0222)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2823B1 #ACB123
analogous
#2365B1 #2823B1 #6F23B1
triadic
#2823B1 #B12823 #23B128
tetradic
#2823B1 #B12365 #ACB123 #23B16F
square
#2823B1 #B12365 #ACB123 #23B16F
split-complementary
#2823B1 #B16F23 #65B123
monochromatic
#110F4B #1C197E #2823B1 #3F39D8 #716CE2

Accessibility & contrast

On white

10.68
#2823B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2823B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2823B1
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2823B1#FFFFFF#000000##FFFFFF
##2823B11.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B5
Deuteranopia (green-blind)
#0037AF
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2823b1;
/* rgb */ color: rgb(40, 35, 177);
/* oklch */ color: oklch(38.6% 0.211 272.0);
Tailwind
colors: {
  custom: {
    50: '#7b62ca',
    500: '#2823b1',
    950: '#000000',
  },
}
SCSS
$custom: #2823b1;
$custom-light: #7b62ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2823b1",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 242.113,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38557,
    "c": 0.21081,
    "h": 272
  },
  "luminance": 0.04828
}

Semantic roles & 50–950 ramp

primary
#2823B1
secondary
#C5C868
accent
#EA3EE4
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2823B1

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

Preview Lab → · Contrast checker → · Palette generator →

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