#2B316B#2B316B

#2B316B is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.100 H 275.3°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2B316B
RGBrgb(43, 49, 107)
HSLhsl(234, 43%, 29%)
HSVhsv(234, 60%, 42%)
CMYKcmyk(59.8%, 54.2%, 0%, 58%)
CIE-LABlab(22.90, 16.46, -34.79)
CIE-LCHlch(22.90, 38.49, 295.32°)
OKLaboklab(34.17% 0.0093 -0.0995)
OKLCHoklch(34.17% 0.1 275.3)
XYZxyz(4.7476, 3.7714, 14.3848)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B316B #6B652B
analogous
#2B516B #2B316B #452B6B
triadic
#2B316B #6B2B31 #316B2B
tetradic
#2B316B #6B2B51 #6B652B #2B6B45
square
#2B316B #6B2B51 #6B652B #2B6B45
split-complementary
#2B316B #6B452B #516B2B
monochromatic
#090A16 #191D3F #2B316B #3D4597 #565FBB

Accessibility & contrast

On white

11.97
#2B316B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B316B
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B316B#FFFFFF#000000##FFFFFF
##2B316B1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12396D
Deuteranopia (green-blind)
#06346A
Tritanopia (blue-blind)
#063E49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b316b;
/* rgb */ color: rgb(43, 49, 107);
/* oklch */ color: oklch(34.2% 0.100 275.3);
Tailwind
colors: {
  custom: {
    50: '#6b6896',
    500: '#2b316b',
    950: '#000000',
  },
}
SCSS
$custom: #2b316b;
$custom-light: #6b6896;
$custom-dark: #000000;
JSON
{
  "hex": "#2b316b",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 107
  },
  "hsl": {
    "h": 234.375,
    "s": 42.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34172,
    "c": 0.09992,
    "h": 275.3
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#2B316B
secondary
#9D9655
accent
#C755D2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2B316B

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

Preview Lab → · Contrast checker → · Palette generator →

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