#2B2575#2B2575

#2B2575 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.132 H 279.6°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2B2575
RGBrgb(43, 37, 117)
HSLhsl(245, 52%, 30%)
HSVhsv(245, 68%, 46%)
CMYKcmyk(63.2%, 68.4%, 0%, 54.1%)
CIE-LABlab(20.52, 28.26, -45.09)
CIE-LCHlch(20.52, 53.21, 302.08°)
OKLaboklab(32.67% 0.0219 -0.1298)
OKLCHoklch(32.67% 0.132 279.6)
XYZxyz(4.8677, 3.1207, 17.1720)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2575 #6F7525
analogous
#254775 #2B2575 #532575
triadic
#2B2575 #752B25 #25752B
tetradic
#2B2575 #752547 #6F7525 #257553
square
#2B2575 #752547 #6F7525 #257553
split-complementary
#2B2575 #755325 #477525
monochromatic
#090818 #1A1647 #2B2575 #3C34A3 #574EC7

Accessibility & contrast

On white

12.93
#2B2575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B2575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2575
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2575#FFFFFF#000000##FFFFFF
##2B25751.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b2575;
/* rgb */ color: rgb(43, 37, 117);
/* oklch */ color: oklch(32.7% 0.132 279.6);
Tailwind
colors: {
  custom: {
    50: '#6e609e',
    500: '#2b2575',
    950: '#000000',
  },
}
SCSS
$custom: #2b2575;
$custom-light: #6e609e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2575",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 244.5,
    "s": 51.948,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32669,
    "c": 0.13168,
    "h": 279.6
  },
  "luminance": 0.03121
}

Semantic roles & 50–950 ramp

primary
#2B2575
secondary
#A1A84E
accent
#DB4CD1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2B2575

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

Preview Lab → · Contrast checker → · Palette generator →

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