#2B316A#2B316A

#2B316A is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.1% C 0.098 H 275.4°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#2B316A
RGBrgb(43, 49, 106)
HSLhsl(234, 42%, 29%)
HSVhsv(234, 59%, 42%)
CMYKcmyk(59.4%, 53.8%, 0%, 58.4%)
CIE-LABlab(22.83, 16.10, -34.26)
CIE-LCHlch(22.83, 37.85, 295.16°)
OKLaboklab(34.1% 0.0092 -0.0979)
OKLCHoklch(34.1% 0.098 275.4)
XYZxyz(4.6953, 3.7505, 14.1094)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B316A #6A642B
analogous
#2B516A #2B316A #452B6A
triadic
#2B316A #6A2B31 #316A2B
tetradic
#2B316A #6A2B51 #6A642B #2B6A45
square
#2B316A #6A2B51 #6A642B #2B6A45
split-complementary
#2B316A #6A452B #516A2B
monochromatic
#090A16 #191D3E #2B316A #3D4596 #555FBA

Accessibility & contrast

On white

12.00
#2B316A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B316A
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B316A#FFFFFF#000000##FFFFFF
##2B316A1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13396C
Deuteranopia (green-blind)
#083469
Tritanopia (blue-blind)
#073E48
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b316a;
/* rgb */ color: rgb(43, 49, 106);
/* oklch */ color: oklch(34.1% 0.098 275.4);
Tailwind
colors: {
  custom: {
    50: '#6a6895',
    500: '#2b316a',
    950: '#000000',
  },
}
SCSS
$custom: #2b316a;
$custom-light: #6a6895;
$custom-dark: #000000;
JSON
{
  "hex": "#2b316a",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 106
  },
  "hsl": {
    "h": 234.286,
    "s": 42.282,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34095,
    "c": 0.09836,
    "h": 275.4
  },
  "luminance": 0.03751
}

Semantic roles & 50–950 ramp

primary
#2B316A
secondary
#9C9555
accent
#C656D2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2B316A

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

Preview Lab → · Contrast checker → · Palette generator →

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