#2B2297#2B2297

#2B2297 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.180 H 275.7°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2B2297
RGBrgb(43, 34, 151)
HSLhsl(245, 63%, 36%)
HSVhsv(245, 77%, 59%)
CMYKcmyk(71.5%, 77.5%, 0%, 40.8%)
CIE-LABlab(23.31, 41.66, -61.85)
CIE-LCHlch(23.31, 74.58, 303.96°)
OKLaboklab(35.7% 0.0177 -0.1788)
OKLCHoklch(35.7% 0.18 275.7)
XYZxyz(7.1524, 3.8913, 29.6463)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2297 #8E9722
analogous
#225497 #2B2297 #662297
triadic
#2B2297 #972B22 #22972B
tetradic
#2B2297 #972254 #8E9722 #229766
square
#2B2297 #972254 #8E9722 #229766
split-complementary
#2B2297 #976622 #549722
monochromatic
#0F0C33 #1D1765 #2B2297 #392DC9 #635ADA

Accessibility & contrast

On white

11.81
#2B2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2B2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2297
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2297#FFFFFF#000000##FFFFFF
##2B22971.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b2297;
/* rgb */ color: rgb(43, 34, 151);
/* oklch */ color: oklch(35.7% 0.180 275.7);
Tailwind
colors: {
  custom: {
    50: '#765fb7',
    500: '#2b2297',
    950: '#000000',
  },
}
SCSS
$custom: #2b2297;
$custom-light: #765fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2297",
  "rgb": {
    "r": 43,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 244.615,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35699,
    "c": 0.1797,
    "h": 275.7
  },
  "luminance": 0.03892
}

Semantic roles & 50–950 ramp

primary
#2B2297
secondary
#B6BE57
accent
#E642DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2B2297

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

Preview Lab → · Contrast checker → · Palette generator →

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