#2B2795#2B2795

#2B2795 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.172 H 275.1°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#2B2795
RGBrgb(43, 39, 149)
HSLhsl(242, 59%, 37%)
HSVhsv(242, 74%, 58%)
CMYKcmyk(71.1%, 73.8%, 0%, 41.6%)
CIE-LABlab(24.11, 38.13, -59.30)
CIE-LCHlch(24.11, 70.50, 302.74°)
OKLaboklab(36.2% 0.0154 -0.1714)
OKLCHoklch(36.2% 0.172 275.1)
XYZxyz(7.1448, 4.1339, 28.8493)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2795 #919527
analogous
#275A95 #2B2795 #622795
triadic
#2B2795 #952B27 #27952B
tetradic
#2B2795 #95275A #919527 #279562
square
#2B2795 #95275A #919527 #279562
split-complementary
#2B2795 #956227 #5A9527
monochromatic
#0F0E34 #1D1A64 #2B2795 #3934C6 #6561D6

Accessibility & contrast

On white

11.49
#2B2795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2B2795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2795
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2795#FFFFFF#000000##FFFFFF
##2B27951.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b2795;
/* rgb */ color: rgb(43, 39, 149);
/* oklch */ color: oklch(36.2% 0.172 275.1);
Tailwind
colors: {
  custom: {
    50: '#7562b5',
    500: '#2b2795',
    950: '#000000',
  },
}
SCSS
$custom: #2b2795;
$custom-light: #7562b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2795",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 242.182,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36202,
    "c": 0.17212,
    "h": 275.1
  },
  "luminance": 0.04135
}

Semantic roles & 50–950 ramp

primary
#2B2795
secondary
#B8BB5D
accent
#E246DC
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2B2795

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

Preview Lab → · Contrast checker → · Palette generator →

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