#2B2875#2B2875

#2B2875 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.128 H 278.6°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2B2875
RGBrgb(43, 40, 117)
HSLhsl(242, 49%, 31%)
HSVhsv(242, 66%, 46%)
CMYKcmyk(63.2%, 65.8%, 0%, 54.1%)
CIE-LABlab(21.26, 26.29, -43.88)
CIE-LCHlch(21.26, 51.15, 300.93°)
OKLaboklab(33.21% 0.0191 -0.1263)
OKLCHoklch(33.21% 0.128 278.6)
XYZxyz(4.9649, 3.3152, 17.2044)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2875 #727528
analogous
#284B75 #2B2875 #512875
triadic
#2B2875 #752B28 #28752B
tetradic
#2B2875 #75284B #727528 #287551
square
#2B2875 #75284B #727528 #287551
split-complementary
#2B2875 #755128 #4B7528
monochromatic
#09091A #1A1847 #2B2875 #3C38A3 #5853C4

Accessibility & contrast

On white

12.63
#2B2875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2B2875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2875
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2875#FFFFFF#000000##FFFFFF
##2B28751.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b2875;
/* rgb */ color: rgb(43, 40, 117);
/* oklch */ color: oklch(33.2% 0.128 278.6);
Tailwind
colors: {
  custom: {
    50: '#6d629d',
    500: '#2b2875',
    950: '#000000',
  },
}
SCSS
$custom: #2b2875;
$custom-light: #6d629d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2875",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 117
  },
  "hsl": {
    "h": 242.338,
    "s": 49.045,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3321,
    "c": 0.12771,
    "h": 278.6
  },
  "luminance": 0.03316
}

Semantic roles & 50–950 ramp

primary
#2B2875
secondary
#A4A752
accent
#D94FD3
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2B2875

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

Preview Lab → · Contrast checker → · Palette generator →

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