#2B319B#2B319B

#2B319B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.169 H 272.8°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#2B319B
RGBrgb(43, 49, 155)
HSLhsl(237, 57%, 39%)
HSVhsv(237, 72%, 61%)
CMYKcmyk(72.3%, 68.4%, 0%, 39.2%)
CIE-LABlab(26.95, 34.07, -58.31)
CIE-LCHlch(26.95, 67.54, 300.30°)
OKLaboklab(38.42% 0.0082 -0.1685)
OKLCHoklch(38.42% 0.169 272.8)
XYZxyz(8.0090, 5.0760, 31.5617)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B319B #9B952B
analogous
#2B699B #2B319B #5D2B9B
triadic
#2B319B #9B2B31 #319B2B
tetradic
#2B319B #9B2B69 #9B952B #2B9B5D
square
#2B319B #9B2B69 #9B952B #2B9B5D
split-complementary
#2B319B #9B5D2B #699B2B
monochromatic
#10133B #1E226B #2B319B #3B42C9 #6B70D6

Accessibility & contrast

On white

10.42
#2B319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2B319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B319B
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B319B#FFFFFF#000000##FFFFFF
##2B319B1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b319b;
/* rgb */ color: rgb(43, 49, 155);
/* oklch */ color: oklch(38.4% 0.169 272.8);
Tailwind
colors: {
  custom: {
    50: '#7569b9',
    500: '#2b319b',
    950: '#000000',
  },
}
SCSS
$custom: #2b319b;
$custom-light: #7569b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b319b",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 236.786,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38425,
    "c": 0.16874,
    "h": 272.8
  },
  "luminance": 0.05077
}

Semantic roles & 50–950 ramp

primary
#2B319B
secondary
#BCB865
accent
#D848E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B319B

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

Preview Lab → · Contrast checker → · Palette generator →

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