#2B2198#2B2198

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

Color values

HEX#2B2198
RGBrgb(43, 33, 152)
HSLhsl(245, 64%, 36%)
HSVhsv(245, 78%, 60%)
CMYKcmyk(71.7%, 78.3%, 0%, 40.4%)
CIE-LABlab(23.23, 42.53, -62.60)
CIE-LCHlch(23.23, 75.68, 304.19°)
OKLaboklab(35.68% 0.018 -0.181)
OKLCHoklch(35.68% 0.182 275.7)
XYZxyz(7.2058, 3.8676, 30.0665)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2198 #8E9821
analogous
#215398 #2B2198 #672198
triadic
#2B2198 #982B21 #21982B
tetradic
#2B2198 #982153 #8E9821 #219867
square
#2B2198 #982153 #8E9821 #219867
split-complementary
#2B2198 #986721 #539821
monochromatic
#0F0B33 #1D1666 #2B2198 #392CCA #6359DB

Accessibility & contrast

On white

11.84
#2B2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2B2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2198
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2198#FFFFFF#000000##FFFFFF
##2B21981.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b2198;
/* rgb */ color: rgb(43, 33, 152);
/* oklch */ color: oklch(35.7% 0.182 275.7);
Tailwind
colors: {
  custom: {
    50: '#765fb8',
    500: '#2b2198',
    950: '#000000',
  },
}
SCSS
$custom: #2b2198;
$custom-light: #765fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2198",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 245.042,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35675,
    "c": 0.18188,
    "h": 275.7
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#2B2198
secondary
#B6BF56
accent
#E740D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2B2198

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

Preview Lab → · Contrast checker → · Palette generator →

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