#2B107E#2B107E

#2B107E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.165 H 281.9°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#2B107E
RGBrgb(43, 16, 126)
HSLhsl(255, 77%, 28%)
HSVhsv(255, 87%, 49%)
CMYKcmyk(65.9%, 87.3%, 0%, 50.6%)
CIE-LABlab(17.41, 42.65, -55.96)
CIE-LCHlch(17.41, 70.35, 307.31°)
OKLaboklab(30.76% 0.0342 -0.1614)
OKLCHoklch(30.76% 0.165 281.9)
XYZxyz(4.9463, 2.3902, 19.9353)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B107E #637E10
analogous
#102C7E #2B107E #62107E
triadic
#2B107E #7E2B10 #107E2B
tetradic
#2B107E #7E102C #637E10 #107E62
square
#2B107E #7E102C #637E10 #107E62
split-complementary
#2B107E #7E6210 #2C7E10
monochromatic
#09031B #180948 #2B107E #3E17B4 #5425E3

Accessibility & contrast

On white

14.21
#2B107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B107E
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B107E#FFFFFF#000000##FFFFFF
##2B107E1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b107e;
/* rgb */ color: rgb(43, 16, 126);
/* oklch */ color: oklch(30.8% 0.165 281.9);
Tailwind
colors: {
  custom: {
    50: '#7154a5',
    500: '#2b107e',
    950: '#000000',
  },
}
SCSS
$custom: #2b107e;
$custom-light: #7154a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b107e",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 254.727,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30761,
    "c": 0.16499,
    "h": 281.9
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#2B107E
secondary
#95B436
accent
#F434C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B107E

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

Preview Lab → · Contrast checker → · Palette generator →

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