#2B28A2#2B28A2

#2B28A2 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.187 H 273.8°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#2B28A2
RGBrgb(43, 40, 162)
HSLhsl(241, 60%, 40%)
HSVhsv(241, 75%, 64%)
CMYKcmyk(73.5%, 75.3%, 0%, 36.5%)
CIE-LABlab(25.68, 41.94, -64.66)
CIE-LCHlch(25.68, 77.07, 302.97°)
OKLaboklab(37.73% 0.0124 -0.1871)
OKLCHoklch(37.73% 0.187 273.8)
XYZxyz(8.2745, 4.6390, 34.6348)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B28A2 #9FA228
analogous
#2862A2 #2B28A2 #6828A2
triadic
#2B28A2 #A22B28 #28A22B
tetradic
#2B28A2 #A22862 #9FA228 #28A268
square
#2B28A2 #A22862 #9FA228 #28A268
split-complementary
#2B28A2 #A26828 #62A228
monochromatic
#111040 #1E1C71 #2B28A2 #3D39CE #6D6ADA

Accessibility & contrast

On white

10.89
#2B28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2B28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B28A2
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B28A2#FFFFFF#000000##FFFFFF
##2B28A21.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b28a2;
/* rgb */ color: rgb(43, 40, 162);
/* oklch */ color: oklch(37.7% 0.187 273.8);
Tailwind
colors: {
  custom: {
    50: '#7864bf',
    500: '#2b28a2',
    950: '#000000',
  },
}
SCSS
$custom: #2b28a2;
$custom-light: #7864bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b28a2",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 241.475,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37726,
    "c": 0.18747,
    "h": 273.8
  },
  "luminance": 0.0464
}

Semantic roles & 50–950 ramp

primary
#2B28A2
secondary
#BEC165
accent
#E444E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2B28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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