#2B319E#2B319E

#2B319E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.173 H 272.6°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#2B319E
RGBrgb(43, 49, 158)
HSLhsl(237, 57%, 39%)
HSVhsv(237, 73%, 62%)
CMYKcmyk(72.8%, 69%, 0%, 38%)
CIE-LABlab(27.24, 35.15, -59.67)
CIE-LCHlch(27.24, 69.25, 300.50°)
OKLaboklab(38.72% 0.0079 -0.1725)
OKLCHoklch(38.72% 0.173 272.6)
XYZxyz(8.2641, 5.1780, 32.9051)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B319E #9E982B
analogous
#2B6A9E #2B319E #5F2B9E
triadic
#2B319E #9E2B31 #319E2B
tetradic
#2B319E #9E2B6A #9E982B #2B9E5F
square
#2B319E #9E2B6A #9E982B #2B9E5F
split-complementary
#2B319E #9E5F2B #6A9E2B
monochromatic
#11133E #1E226E #2B319E #3C44CA #6C72D7

Accessibility & contrast

On white

10.32
#2B319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2B319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B319E
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B319E#FFFFFF#000000##FFFFFF
##2B319E1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2b319e;
/* rgb */ color: rgb(43, 49, 158);
/* oklch */ color: oklch(38.7% 0.173 272.6);
Tailwind
colors: {
  custom: {
    50: '#7669bc',
    500: '#2b319e',
    950: '#000000',
  },
}
SCSS
$custom: #2b319e;
$custom-light: #7669bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b319e",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 236.87,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38719,
    "c": 0.1727,
    "h": 272.6
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

primary
#2B319E
secondary
#BEB967
accent
#D847E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B319E

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

Preview Lab → · Contrast checker → · Palette generator →

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