#2B23A3#2B23A3

#2B23A3 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.193 H 274.3°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2B23A3
RGBrgb(43, 35, 163)
HSLhsl(244, 65%, 39%)
HSVhsv(244, 79%, 64%)
CMYKcmyk(73.6%, 78.5%, 0%, 36.1%)
CIE-LABlab(24.83, 45.02, -66.68)
CIE-LCHlch(24.83, 80.46, 304.02°)
OKLaboklab(37.16% 0.0144 -0.1929)
OKLCHoklch(37.16% 0.193 274.3)
XYZxyz(8.2060, 4.3592, 35.0522)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B23A3 #9BA323
analogous
#235BA3 #2B23A3 #6B23A3
triadic
#2B23A3 #A32B23 #23A32B
tetradic
#2B23A3 #A3235B #9BA323 #23A36B
square
#2B23A3 #A3235B #9BA323 #23A36B
split-complementary
#2B23A3 #A36B23 #5BA323
monochromatic
#100D3E #1E1871 #2B23A3 #3B31D3 #6B63DD

Accessibility & contrast

On white

11.22
#2B23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2B23A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B23A3
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B23A3#FFFFFF#000000##FFFFFF
##2B23A31.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A7
Deuteranopia (green-blind)
#0035A1
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b23a3;
/* rgb */ color: rgb(43, 35, 163);
/* oklch */ color: oklch(37.2% 0.193 274.3);
Tailwind
colors: {
  custom: {
    50: '#7861c0',
    500: '#2b23a3',
    950: '#000000',
  },
}
SCSS
$custom: #2b23a3;
$custom-light: #7861c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b23a3",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 243.75,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37155,
    "c": 0.19342,
    "h": 274.3
  },
  "luminance": 0.0436
}

Semantic roles & 50–950 ramp

primary
#2B23A3
secondary
#BCC35F
accent
#E840DD
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B23A3

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

Preview Lab → · Contrast checker → · Palette generator →

#2B23A3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva