#2B2170#2B2170

#2B2170 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.130 H 281.7°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#2B2170
RGBrgb(43, 33, 112)
HSLhsl(248, 54%, 28%)
HSVhsv(248, 71%, 44%)
CMYKcmyk(61.6%, 70.5%, 0%, 56.1%)
CIE-LABlab(19.10, 29.09, -44.19)
CIE-LCHlch(19.10, 52.91, 303.36°)
OKLaboklab(31.5% 0.0263 -0.1272)
OKLCHoklch(31.5% 0.13 281.7)
XYZxyz(4.4638, 2.7709, 15.6257)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2170 #667021
analogous
#213E70 #2B2170 #522170
triadic
#2B2170 #702B21 #21702B
tetradic
#2B2170 #70213E #667021 #217052
square
#2B2170 #70213E #667021 #217052
split-complementary
#2B2170 #705221 #3E7021
monochromatic
#090718 #191341 #2B2170 #3D2F9F #5444C8

Accessibility & contrast

On white

13.51
#2B2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2B2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2170
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2170#FFFFFF#000000##FFFFFF
##2B21701.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#013545
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b2170;
/* rgb */ color: rgb(43, 33, 112);
/* oklch */ color: oklch(31.5% 0.130 281.7);
Tailwind
colors: {
  custom: {
    50: '#6d5d9a',
    500: '#2b2170',
    950: '#000000',
  },
}
SCSS
$custom: #2b2170;
$custom-light: #6d5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2170",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 247.595,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31499,
    "c": 0.12991,
    "h": 281.7
  },
  "luminance": 0.02771
}

Semantic roles & 50–950 ramp

primary
#2B2170
secondary
#98A449
accent
#DE4ACB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2B2170

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

Preview Lab → · Contrast checker → · Palette generator →

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