#2B107F#2B107F

#2B107F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.166 H 281.7°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#2B107F
RGBrgb(43, 16, 127)
HSLhsl(255, 78%, 28%)
HSVhsv(255, 87%, 50%)
CMYKcmyk(66.1%, 87.4%, 0%, 50.2%)
CIE-LABlab(17.53, 42.94, -56.39)
CIE-LCHlch(17.53, 70.88, 307.29°)
OKLaboklab(30.88% 0.0338 -0.1627)
OKLCHoklch(30.88% 0.166 281.7)
XYZxyz(5.0111, 2.4161, 20.2768)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B107F #647F10
analogous
#102C7F #2B107F #62107F
triadic
#2B107F #7F2B10 #107F2B
tetradic
#2B107F #7F102C #647F10 #107F62
square
#2B107F #7F102C #647F10 #107F62
split-complementary
#2B107F #7F6210 #2C7F10
monochromatic
#09031B #190949 #2B107F #3D17B5 #5426E4

Accessibility & contrast

On white

14.16
#2B107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B107F
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B107F#FFFFFF#000000##FFFFFF
##2B107F1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b107f;
/* rgb */ color: rgb(43, 16, 127);
/* oklch */ color: oklch(30.9% 0.166 281.7);
Tailwind
colors: {
  custom: {
    50: '#7254a5',
    500: '#2b107f',
    950: '#000000',
  },
}
SCSS
$custom: #2b107f;
$custom-light: #7254a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b107f",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 254.595,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30879,
    "c": 0.16616,
    "h": 281.7
  },
  "luminance": 0.02416
}

Semantic roles & 50–950 ramp

primary
#2B107F
secondary
#96B536
accent
#F434C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B107F

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

Preview Lab → · Contrast checker → · Palette generator →

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