#2B2164#2B2164

#2B2164 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.4% C 0.113 H 284.2°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#2B2164
RGBrgb(43, 33, 100)
HSLhsl(249, 50%, 26%)
HSVhsv(249, 67%, 39%)
CMYKcmyk(57%, 67%, 0%, 60.8%)
CIE-LABlab(18.01, 24.95, -38.14)
CIE-LCHlch(18.01, 45.57, 303.19°)
OKLaboklab(30.37% 0.0278 -0.1094)
OKLCHoklch(30.37% 0.113 284.2)
XYZxyz(3.8397, 2.5212, 12.3384)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2164 #5A6421
analogous
#213864 #2B2164 #4C2164
triadic
#2B2164 #642B21 #21642B
tetradic
#2B2164 #642138 #5A6421 #21644C
square
#2B2164 #642138 #5A6421 #21644C
split-complementary
#2B2164 #644C21 #386421
monochromatic
#0A0817 #171236 #2B2164 #3F3092 #5340C0

Accessibility & contrast

On white

13.96
#2B2164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B2164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2164
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2164#FFFFFF#000000##FFFFFF
##2B21641.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E66
Deuteranopia (green-blind)
#002A63
Tritanopia (blue-blind)
#13313F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b2164;
/* rgb */ color: rgb(43, 33, 100);
/* oklch */ color: oklch(30.4% 0.113 284.2);
Tailwind
colors: {
  custom: {
    50: '#6b5d91',
    500: '#2b2164',
    950: '#000000',
  },
}
SCSS
$custom: #2b2164;
$custom-light: #6b5d91;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2164",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 100
  },
  "hsl": {
    "h": 248.955,
    "s": 50.376,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30373,
    "c": 0.11292,
    "h": 284.2
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#2B2164
secondary
#8C9849
accent
#DA4EC5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040D
muted
#7A797D

Preview Lab

Preview with #2B2164

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

Preview Lab → · Contrast checker → · Palette generator →

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