#2B319A#2B319A

#2B319A is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.167 H 272.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#2B319A
RGBrgb(43, 49, 154)
HSLhsl(237, 56%, 39%)
HSVhsv(237, 72%, 60%)
CMYKcmyk(72.1%, 68.2%, 0%, 39.6%)
CIE-LABlab(26.86, 33.72, -57.85)
CIE-LCHlch(26.86, 66.96, 300.23°)
OKLaboklab(38.33% 0.0083 -0.1672)
OKLCHoklch(38.33% 0.167 272.9)
XYZxyz(7.9254, 5.0425, 31.1212)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B319A #9A942B
analogous
#2B689A #2B319A #5C2B9A
triadic
#2B319A #9A2B31 #319A2B
tetradic
#2B319A #9A2B68 #9A942B #2B9A5C
square
#2B319A #9A2B68 #9A942B #2B9A5C
split-complementary
#2B319A #9A5C2B #689A2B
monochromatic
#10133A #1E226A #2B319A #3A42C8 #6A70D5

Accessibility & contrast

On white

10.46
#2B319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2B319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B319A
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B319A#FFFFFF#000000##FFFFFF
##2B319A1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b319a;
/* rgb */ color: rgb(43, 49, 154);
/* oklch */ color: oklch(38.3% 0.167 272.9);
Tailwind
colors: {
  custom: {
    50: '#7569b9',
    500: '#2b319a',
    950: '#000000',
  },
}
SCSS
$custom: #2b319a;
$custom-light: #7569b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b319a",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 236.757,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38327,
    "c": 0.16742,
    "h": 272.9
  },
  "luminance": 0.05043
}

Semantic roles & 50–950 ramp

primary
#2B319A
secondary
#BCB765
accent
#D748E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B319A

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

Preview Lab → · Contrast checker → · Palette generator →

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