#2B2785#2B2785

#2B2785 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.151 H 276.9°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2B2785
RGBrgb(43, 39, 133)
HSLhsl(243, 55%, 34%)
HSVhsv(243, 71%, 52%)
CMYKcmyk(67.7%, 70.7%, 0%, 47.8%)
CIE-LABlab(22.51, 32.60, -51.99)
CIE-LCHlch(22.51, 61.37, 302.09°)
OKLaboklab(34.57% 0.0181 -0.1501)
OKLCHoklch(34.57% 0.151 276.9)
XYZxyz(5.9540, 3.6576, 22.5780)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2785 #818527
analogous
#275285 #2B2785 #5A2785
triadic
#2B2785 #852B27 #27852B
tetradic
#2B2785 #852752 #818527 #27855A
square
#2B2785 #852752 #818527 #27855A
split-complementary
#2B2785 #855A27 #528527
monochromatic
#0C0B26 #1C1956 #2B2785 #3A35B4 #5D58CE

Accessibility & contrast

On white

12.13
#2B2785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2B2785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2785
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2785#FFFFFF#000000##FFFFFF
##2B27851.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2785;
/* rgb */ color: rgb(43, 39, 133);
/* oklch */ color: oklch(34.6% 0.151 276.9);
Tailwind
colors: {
  custom: {
    50: '#7162a9',
    500: '#2b2785',
    950: '#000000',
  },
}
SCSS
$custom: #2b2785;
$custom-light: #7162a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2785",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 242.553,
    "s": 54.651,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34568,
    "c": 0.15115,
    "h": 276.9
  },
  "luminance": 0.03658
}

Semantic roles & 50–950 ramp

primary
#2B2785
secondary
#AFB355
accent
#DE4AD8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B2785

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

Preview Lab → · Contrast checker → · Palette generator →

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