#2B2970#2B2970

#2B2970 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.9% C 0.119 H 278.9°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#2B2970
RGBrgb(43, 41, 112)
HSLhsl(242, 46%, 30%)
HSVhsv(242, 63%, 44%)
CMYKcmyk(61.6%, 63.4%, 0%, 56.1%)
CIE-LABlab(21.09, 23.82, -40.95)
CIE-LCHlch(21.09, 47.37, 300.19°)
OKLaboklab(32.95% 0.0184 -0.1177)
OKLCHoklch(32.95% 0.119 278.9)
XYZxyz(4.7129, 3.2690, 15.7087)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2970 #6E7029
analogous
#294B70 #2B2970 #4E2970
triadic
#2B2970 #702B29 #29702B
tetradic
#2B2970 #70294B #6E7029 #29704E
square
#2B2970 #70294B #6E7029 #29704E
split-complementary
#2B2970 #704E29 #4B7029
monochromatic
#090816 #1A1943 #2B2970 #3C399D #5653C0

Accessibility & contrast

On white

12.70
#2B2970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2B2970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2970
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2970#FFFFFF#000000##FFFFFF
##2B29701.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b2970;
/* rgb */ color: rgb(43, 41, 112);
/* oklch */ color: oklch(32.9% 0.119 278.9);
Tailwind
colors: {
  custom: {
    50: '#6c639a',
    500: '#2b2970',
    950: '#000000',
  },
}
SCSS
$custom: #2b2970;
$custom-light: #6c639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2970",
  "rgb": {
    "r": 43,
    "g": 41,
    "b": 112
  },
  "hsl": {
    "h": 241.69,
    "s": 46.405,
    "l": 30
  },
  "oklch": {
    "l": 0.32948,
    "c": 0.11909,
    "h": 278.9
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#2B2970
secondary
#A0A253
accent
#D652D2
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2B2970

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

Preview Lab → · Contrast checker → · Palette generator →

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