#2C2B71#2C2B71

#2C2B71 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.5% C 0.118 H 278.6°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2C2B71
RGBrgb(44, 43, 113)
HSLhsl(241, 45%, 31%)
HSVhsv(241, 62%, 44%)
CMYKcmyk(61.1%, 61.9%, 0%, 55.7%)
CIE-LABlab(21.78, 23.01, -40.46)
CIE-LCHlch(21.78, 46.55, 299.63°)
OKLaboklab(33.5% 0.0176 -0.1162)
OKLCHoklch(33.5% 0.118 278.6)
XYZxyz(4.8823, 3.4551, 16.0292)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2B71 #70712B
analogous
#2B4D71 #2C2B71 #4F2B71
triadic
#2C2B71 #712C2B #2B712C
tetradic
#2C2B71 #712B4D #70712B #2B714F
square
#2C2B71 #712B4D #70712B #2B714F
split-complementary
#2C2B71 #714F2B #4D712B
monochromatic
#090918 #1B1A45 #2C2B71 #3D3C9D #5957BF

Accessibility & contrast

On white

12.42
#2C2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2B71
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2B71#FFFFFF#000000##FFFFFF
##2C2B711.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#013C49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c2b71;
/* rgb */ color: rgb(44, 43, 113);
/* oklch */ color: oklch(33.5% 0.118 278.6);
Tailwind
colors: {
  custom: {
    50: '#6d649a',
    500: '#2c2b71',
    950: '#000000',
  },
}
SCSS
$custom: #2c2b71;
$custom-light: #6d649a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2b71",
  "rgb": {
    "r": 44,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 240.857,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33504,
    "c": 0.11752,
    "h": 278.6
  },
  "luminance": 0.03455
}

Semantic roles & 50–950 ramp

primary
#2C2B71
secondary
#A2A355
accent
#D553D3
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2C2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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