#23228E#23228E

#23228E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.170 H 273.1°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#23228E
RGBrgb(35, 34, 142)
HSLhsl(241, 61%, 35%)
HSVhsv(241, 76%, 56%)
CMYKcmyk(75.4%, 76.1%, 0%, 44.3%)
CIE-LABlab(21.78, 37.86, -58.83)
CIE-LCHlch(21.78, 69.96, 302.76°)
OKLaboklab(34.18% 0.0092 -0.1702)
OKLCHoklch(34.18% 0.17 273.1)
XYZxyz(6.1460, 3.4537, 25.9287)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23228E #8D8E22
analogous
#22578E #23228E #59228E
triadic
#23228E #8E2322 #228E23
tetradic
#23228E #8E2257 #8D8E22 #228E59
square
#23228E #8E2257 #8D8E22 #228E59
split-complementary
#23228E #8E5922 #578E22
monochromatic
#0B0A2B #17165D #23228E #2F2EBF #5554D6

Accessibility & contrast

On white

12.42
#23228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#23228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23228E
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23228E#FFFFFF#000000##FFFFFF
##23228E1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #23228e;
/* rgb */ color: rgb(35, 34, 142);
/* oklch */ color: oklch(34.2% 0.170 273.1);
Tailwind
colors: {
  custom: {
    50: '#705fb0',
    500: '#23228e',
    950: '#000000',
  },
}
SCSS
$custom: #23228e;
$custom-light: #705fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#23228e",
  "rgb": {
    "r": 35,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 240.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3418,
    "c": 0.17049,
    "h": 273.1
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#23228E
secondary
#B9BA52
accent
#E443E3
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #23228E

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

Preview Lab → · Contrast checker → · Palette generator →

#23228E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva