#2B2797#2B2797

#2B2797 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.175 H 274.9°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2B2797
RGBrgb(43, 39, 151)
HSLhsl(242, 59%, 37%)
HSVhsv(242, 74%, 59%)
CMYKcmyk(71.5%, 74.2%, 0%, 40.8%)
CIE-LABlab(24.32, 38.81, -60.19)
CIE-LCHlch(24.32, 71.62, 302.82°)
OKLaboklab(36.41% 0.015 -0.174)
OKLCHoklch(36.41% 0.175 274.9)
XYZxyz(7.3058, 4.1983, 29.6975)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2797 #939727
analogous
#275B97 #2B2797 #632797
triadic
#2B2797 #972B27 #27972B
tetradic
#2B2797 #97275B #939727 #279763
square
#2B2797 #97275B #939727 #279763
split-complementary
#2B2797 #976327 #5B9727
monochromatic
#0F0E36 #1D1A66 #2B2797 #3934C8 #6662D6

Accessibility & contrast

On white

11.41
#2B2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2797
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2797#FFFFFF#000000##FFFFFF
##2B27971.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b2797;
/* rgb */ color: rgb(43, 39, 151);
/* oklch */ color: oklch(36.4% 0.175 274.9);
Tailwind
colors: {
  custom: {
    50: '#7563b7',
    500: '#2b2797',
    950: '#000000',
  },
}
SCSS
$custom: #2b2797;
$custom-light: #7563b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2797",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 242.143,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36412,
    "c": 0.17467,
    "h": 274.9
  },
  "luminance": 0.04199
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B2797

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

Preview Lab → · Contrast checker → · Palette generator →

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