#2B2897#2B2897

#2B2897 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.174 H 274.8°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#2B2897
RGBrgb(43, 40, 151)
HSLhsl(242, 58%, 37%)
HSVhsv(242, 74%, 59%)
CMYKcmyk(71.5%, 73.5%, 0%, 40.8%)
CIE-LABlab(24.53, 38.22, -59.84)
CIE-LCHlch(24.53, 71.01, 302.57°)
OKLaboklab(36.56% 0.0144 -0.173)
OKLCHoklch(36.56% 0.174 274.8)
XYZxyz(7.3391, 4.2648, 29.7086)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2897 #949728
analogous
#285C97 #2B2897 #632897
triadic
#2B2897 #972B28 #28972B
tetradic
#2B2897 #97285C #949728 #289763
square
#2B2897 #97285C #949728 #289763
split-complementary
#2B2897 #976328 #5C9728
monochromatic
#0F0E36 #1D1B67 #2B2897 #3935C7 #6764D6

Accessibility & contrast

On white

11.33
#2B2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2897
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2897#FFFFFF#000000##FFFFFF
##2B28971.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2897;
/* rgb */ color: rgb(43, 40, 151);
/* oklch */ color: oklch(36.6% 0.174 274.8);
Tailwind
colors: {
  custom: {
    50: '#7563b7',
    500: '#2b2897',
    950: '#000000',
  },
}
SCSS
$custom: #2b2897;
$custom-light: #7563b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2897",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 241.622,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36563,
    "c": 0.17361,
    "h": 274.8
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#2B2897
secondary
#B9BC5F
accent
#E146DD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2B2897

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

Preview Lab → · Contrast checker → · Palette generator →

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