#2B318B#2B318B

#2B318B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.147 H 273.7°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#2B318B
RGBrgb(43, 49, 139)
HSLhsl(236, 53%, 36%)
HSVhsv(236, 69%, 55%)
CMYKcmyk(69.1%, 64.7%, 0%, 45.5%)
CIE-LABlab(25.48, 28.28, -50.86)
CIE-LCHlch(25.48, 58.19, 299.08°)
OKLaboklab(36.9% 0.0096 -0.1467)
OKLCHoklch(36.9% 0.147 273.7)
XYZxyz(6.7532, 4.5737, 24.9480)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B318B #8B852B
analogous
#2B618B #2B318B #552B8B
triadic
#2B318B #8B2B31 #318B2B
tetradic
#2B318B #8B2B61 #8B852B #2B8B55
square
#2B318B #8B2B61 #8B852B #2B8B55
split-complementary
#2B318B #8B552B #618B2B
monochromatic
#0E102E #1D215C #2B318B #3941BA #6269CE

Accessibility & contrast

On white

10.97
#2B318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2B318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B318B
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B318B#FFFFFF#000000##FFFFFF
##2B318B1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b318b;
/* rgb */ color: rgb(43, 49, 139);
/* oklch */ color: oklch(36.9% 0.147 273.7);
Tailwind
colors: {
  custom: {
    50: '#7169ae',
    500: '#2b318b',
    950: '#000000',
  },
}
SCSS
$custom: #2b318b;
$custom-light: #7169ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b318b",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 236.25,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36904,
    "c": 0.14703,
    "h": 273.7
  },
  "luminance": 0.04574
}

Semantic roles & 50–950 ramp

primary
#2B318B
secondary
#B5AF5D
accent
#D34CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2B318B

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

Preview Lab → · Contrast checker → · Palette generator →

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