#2C2F83#2C2F83

#2C2F83 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.138 H 275.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2C2F83
RGBrgb(44, 47, 131)
HSLhsl(238, 50%, 34%)
HSVhsv(238, 66%, 51%)
CMYKcmyk(66.4%, 64.1%, 0%, 48.6%)
CIE-LABlab(24.34, 26.84, -47.72)
CIE-LCHlch(24.34, 54.76, 299.36°)
OKLaboklab(35.87% 0.013 -0.1375)
OKLCHoklch(35.87% 0.138 275.4)
XYZxyz(6.1506, 4.2067, 21.9562)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F83 #83802C
analogous
#2C5B83 #2C2F83 #552C83
triadic
#2C2F83 #832C2F #2F832C
tetradic
#2C2F83 #832C5B #83802C #2C8355
square
#2C2F83 #832C5B #83802C #2C8355
split-complementary
#2C2F83 #83552C #5B832C
monochromatic
#0D0E27 #1D1F55 #2C2F83 #3B3FB1 #6063CA

Accessibility & contrast

On white

11.40
#2C2F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2C2F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F83
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F83#FFFFFF#000000##FFFFFF
##2C2F831.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#003681
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c2f83;
/* rgb */ color: rgb(44, 47, 131);
/* oklch */ color: oklch(35.9% 0.138 275.4);
Tailwind
colors: {
  custom: {
    50: '#7067a8',
    500: '#2c2f83',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f83;
$custom-light: #7067a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f83",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 237.931,
    "s": 49.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35867,
    "c": 0.13812,
    "h": 275.4
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#2C2F83
secondary
#B0AD5B
accent
#D44FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2C2F83

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

Preview Lab → · Contrast checker → · Palette generator →

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