#2B2098#2B2098

#2B2098 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.183 H 275.8°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#2B2098
RGBrgb(43, 32, 152)
HSLhsl(246, 65%, 36%)
HSVhsv(246, 79%, 60%)
CMYKcmyk(71.7%, 78.9%, 0%, 40.4%)
CIE-LABlab(23.04, 43.06, -62.91)
CIE-LCHlch(23.04, 76.23, 304.39°)
OKLaboklab(35.55% 0.0185 -0.1819)
OKLCHoklch(35.55% 0.183 275.8)
XYZxyz(7.1784, 3.8129, 30.0573)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2098 #8D9820
analogous
#205198 #2B2098 #672098
triadic
#2B2098 #982B20 #20982B
tetradic
#2B2098 #982051 #8D9820 #209867
square
#2B2098 #982051 #8D9820 #209867
split-complementary
#2B2098 #986720 #519820
monochromatic
#0E0B33 #1D1565 #2B2098 #392BCB #6357DC

Accessibility & contrast

On white

11.91
#2B2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2B2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2098
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2098#FFFFFF#000000##FFFFFF
##2B20981.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2098;
/* rgb */ color: rgb(43, 32, 152);
/* oklch */ color: oklch(35.5% 0.183 275.8);
Tailwind
colors: {
  custom: {
    50: '#765eb8',
    500: '#2b2098',
    950: '#000000',
  },
}
SCSS
$custom: #2b2098;
$custom-light: #765eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2098",
  "rgb": {
    "r": 43,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 245.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35545,
    "c": 0.1828,
    "h": 275.8
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#2B2098
secondary
#B6BF54
accent
#E840D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2B2098

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

Preview Lab → · Contrast checker → · Palette generator →

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