#2B165E#2B165E

#2B165E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.120 H 289.7°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#2B165E
RGBrgb(43, 22, 94)
HSLhsl(258, 62%, 23%)
HSVhsv(258, 77%, 37%)
CMYKcmyk(54.3%, 76.6%, 0%, 63.1%)
CIE-LABlab(14.93, 29.85, -39.20)
CIE-LCHlch(14.93, 49.27, 307.29°)
OKLaboklab(27.98% 0.0404 -0.1125)
OKLCHoklch(27.98% 0.12 289.7)
XYZxyz(3.3030, 1.8954, 10.7793)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B165E #495E16
analogous
#16255E #2B165E #4F165E
triadic
#2B165E #5E2B16 #165E2B
tetradic
#2B165E #5E1625 #495E16 #165E4F
square
#2B165E #5E1625 #495E16 #165E4F
split-complementary
#2B165E #5E4F16 #255E16
monochromatic
#0B0619 #140A2C #2B165E #422290 #582DC1

Accessibility & contrast

On white

15.23
#2B165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B165E
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B165E#FFFFFF#000000##FFFFFF
##2B165E1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#192938
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b165e;
/* rgb */ color: rgb(43, 22, 94);
/* oklch */ color: oklch(28.0% 0.120 289.7);
Tailwind
colors: {
  custom: {
    50: '#6a558c',
    500: '#2b165e',
    950: '#000000',
  },
}
SCSS
$custom: #2b165e;
$custom-light: #6a558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b165e",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 257.5,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27981,
    "c": 0.11957,
    "h": 289.7
  },
  "luminance": 0.01896
}

Semantic roles & 50–950 ramp

primary
#2B165E
secondary
#7B953B
accent
#E543B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B165E

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

Preview Lab → · Contrast checker → · Palette generator →

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