#2B2885#2B2885

#2B2885 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.150 H 276.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2B2885
RGBrgb(43, 40, 133)
HSLhsl(242, 54%, 34%)
HSVhsv(242, 70%, 52%)
CMYKcmyk(67.7%, 69.9%, 0%, 47.8%)
CIE-LABlab(22.74, 31.97, -51.61)
CIE-LCHlch(22.74, 60.71, 301.78°)
OKLaboklab(34.74% 0.0173 -0.1489)
OKLCHoklch(34.74% 0.15 276.6)
XYZxyz(5.9873, 3.7241, 22.5891)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2885 #828528
analogous
#285485 #2B2885 #5A2885
triadic
#2B2885 #852B28 #28852B
tetradic
#2B2885 #852854 #828528 #28855A
square
#2B2885 #852854 #828528 #28855A
split-complementary
#2B2885 #855A28 #548528
monochromatic
#0D0C27 #1C1A56 #2B2885 #3A36B4 #5E5ACD

Accessibility & contrast

On white

12.03
#2B2885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2B2885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2885
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2885#FFFFFF#000000##FFFFFF
##2B28851.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b2885;
/* rgb */ color: rgb(43, 40, 133);
/* oklch */ color: oklch(34.7% 0.150 276.6);
Tailwind
colors: {
  custom: {
    50: '#7162a9',
    500: '#2b2885',
    950: '#000000',
  },
}
SCSS
$custom: #2b2885;
$custom-light: #7162a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2885",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 241.935,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34735,
    "c": 0.14995,
    "h": 276.6
  },
  "luminance": 0.03725
}

Semantic roles & 50–950 ramp

primary
#2B2885
secondary
#B0B356
accent
#DD4BD8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B2885

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

Preview Lab → · Contrast checker → · Palette generator →

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