#2B236C#2B236C

#2B236C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.122 H 281.8°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2B236C
RGBrgb(43, 35, 108)
HSLhsl(247, 51%, 28%)
HSVhsv(247, 68%, 42%)
CMYKcmyk(60.2%, 67.6%, 0%, 57.6%)
CIE-LABlab(19.22, 26.41, -41.41)
CIE-LCHlch(19.22, 49.12, 302.53°)
OKLaboklab(31.47% 0.0248 -0.1191)
OKLCHoklch(31.47% 0.122 281.8)
XYZxyz(4.3032, 2.7981, 14.4978)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B236C #646C23
analogous
#233F6C #2B236C #4F236C
triadic
#2B236C #6C2B23 #236C2B
tetradic
#2B236C #6C233F #646C23 #236C4F
square
#2B236C #6C233F #646C23 #236C4F
split-complementary
#2B236C #6C4F23 #3F6C23
monochromatic
#090717 #19143E #2B236C #3D329A #5446C3

Accessibility & contrast

On white

13.46
#2B236C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2B236C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B236C
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B236C#FFFFFF#000000##FFFFFF
##2B236C1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#073544
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b236c;
/* rgb */ color: rgb(43, 35, 108);
/* oklch */ color: oklch(31.5% 0.122 281.8);
Tailwind
colors: {
  custom: {
    50: '#6c5e97',
    500: '#2b236c',
    950: '#000000',
  },
}
SCSS
$custom: #2b236c;
$custom-light: #6c5e97;
$custom-dark: #000000;
JSON
{
  "hex": "#2b236c",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 108
  },
  "hsl": {
    "h": 246.575,
    "s": 51.049,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31468,
    "c": 0.12162,
    "h": 281.8
  },
  "luminance": 0.02798
}

Semantic roles & 50–950 ramp

primary
#2B236C
secondary
#969F4B
accent
#DB4DCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2B236C

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

Preview Lab → · Contrast checker → · Palette generator →

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