#2B2798#2B2798

#2B2798 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.176 H 274.8°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2B2798
RGBrgb(43, 39, 152)
HSLhsl(242, 59%, 37%)
HSVhsv(242, 74%, 60%)
CMYKcmyk(71.7%, 74.3%, 0%, 40.4%)
CIE-LABlab(24.42, 39.15, -60.63)
CIE-LCHlch(24.42, 72.18, 302.85°)
OKLaboklab(36.52% 0.0148 -0.1753)
OKLCHoklch(36.52% 0.176 274.8)
XYZxyz(7.3874, 4.2309, 30.1270)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2798 #949827
analogous
#275B98 #2B2798 #642798
triadic
#2B2798 #982B27 #27982B
tetradic
#2B2798 #98275B #949827 #279864
square
#2B2798 #98275B #949827 #279864
split-complementary
#2B2798 #986427 #5B9827
monochromatic
#0F0E37 #1D1B67 #2B2798 #3933C9 #6763D7

Accessibility & contrast

On white

11.37
#2B2798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2B2798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2798
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2798#FFFFFF#000000##FFFFFF
##2B27981.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b2798;
/* rgb */ color: rgb(43, 39, 152);
/* oklch */ color: oklch(36.5% 0.176 274.8);
Tailwind
colors: {
  custom: {
    50: '#7563b7',
    500: '#2b2798',
    950: '#000000',
  },
}
SCSS
$custom: #2b2798;
$custom-light: #7563b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2798",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 242.124,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36517,
    "c": 0.17594,
    "h": 274.8
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#2B2798
secondary
#B9BC5E
accent
#E245DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2B2798

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

Preview Lab → · Contrast checker → · Palette generator →

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