#2B168F#2B168F

#2B168F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.180 H 278.1°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2B168F
RGBrgb(43, 22, 143)
HSLhsl(250, 73%, 32%)
HSVhsv(250, 85%, 56%)
CMYKcmyk(69.9%, 84.6%, 0%, 43.9%)
CIE-LABlab(20.32, 45.14, -61.84)
CIE-LCHlch(20.32, 76.57, 306.13°)
OKLaboklab(33.35% 0.0255 -0.1786)
OKLCHoklch(33.35% 0.18 278.1)
XYZxyz(6.2395, 3.0700, 26.2450)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B168F #7A8F16
analogous
#163E8F #2B168F #67168F
triadic
#2B168F #8F2B16 #168F2B
tetradic
#2B168F #8F163E #7A8F16 #168F67
square
#2B168F #8F163E #7A8F16 #168F67
split-complementary
#2B168F #8F6716 #3E8F16
monochromatic
#0B0625 #1B0E5A #2B168F #3B1EC4 #5A3EE1

Accessibility & contrast

On white

13.01
#2B168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2B168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B168F
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B168F#FFFFFF#000000##FFFFFF
##2B168F1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b168f;
/* rgb */ color: rgb(43, 22, 143);
/* oklch */ color: oklch(33.4% 0.180 278.1);
Tailwind
colors: {
  custom: {
    50: '#7558b1',
    500: '#2b168f',
    950: '#000000',
  },
}
SCSS
$custom: #2b168f;
$custom-light: #7558b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b168f",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 250.413,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33351,
    "c": 0.18044,
    "h": 278.1
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#2B168F
secondary
#ABC13F
accent
#F038D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B168F

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

Preview Lab → · Contrast checker → · Palette generator →

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