#2B236B#2B236B

#2B236B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.120 H 282.0°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#2B236B
RGBrgb(43, 35, 107)
HSLhsl(247, 51%, 28%)
HSVhsv(247, 67%, 42%)
CMYKcmyk(59.8%, 67.3%, 0%, 58%)
CIE-LABlab(19.13, 26.06, -40.90)
CIE-LCHlch(19.13, 48.50, 302.50°)
OKLaboklab(31.38% 0.025 -0.1176)
OKLCHoklch(31.38% 0.12 282)
XYZxyz(4.2503, 2.7769, 14.2191)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B236B #636B23
analogous
#233F6B #2B236B #4F236B
triadic
#2B236B #6B2B23 #236B2B
tetradic
#2B236B #6B233F #636B23 #236B4F
square
#2B236B #6B233F #636B23 #236B4F
split-complementary
#2B236B #6B4F23 #3F6B23
monochromatic
#090817 #18143D #2B236B #3E3299 #5446C2

Accessibility & contrast

On white

13.50
#2B236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B236B
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B236B#FFFFFF#000000##FFFFFF
##2B236B1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#093543
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b236b;
/* rgb */ color: rgb(43, 35, 107);
/* oklch */ color: oklch(31.4% 0.120 282.0);
Tailwind
colors: {
  custom: {
    50: '#6c5e96',
    500: '#2b236b',
    950: '#000000',
  },
}
SCSS
$custom: #2b236b;
$custom-light: #6c5e96;
$custom-dark: #000000;
JSON
{
  "hex": "#2b236b",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 246.667,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31376,
    "c": 0.12019,
    "h": 282
  },
  "luminance": 0.02777
}

Semantic roles & 50–950 ramp

primary
#2B236B
secondary
#959E4B
accent
#DA4ECB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2B236B

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

Preview Lab → · Contrast checker → · Palette generator →

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