#2C339B#2C339B

#2C339B is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.166 H 272.8°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#2C339B
RGBrgb(44, 51, 155)
HSLhsl(236, 56%, 39%)
HSVhsv(236, 72%, 61%)
CMYKcmyk(71.6%, 67.1%, 0%, 39.2%)
CIE-LABlab(27.49, 32.92, -57.43)
CIE-LCHlch(27.49, 66.19, 299.82°)
OKLaboklab(38.83% 0.008 -0.1659)
OKLCHoklch(38.83% 0.166 272.8)
XYZxyz(8.1369, 5.2689, 31.5922)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C339B #9B942C
analogous
#2C6B9B #2C339B #5D2C9B
triadic
#2C339B #9B2C33 #339B2C
tetradic
#2C339B #9B2C6B #9B942C #2C9B5D
square
#2C339B #9B2C6B #9B942C #2C9B5D
split-complementary
#2C339B #9B5D2C #6B9B2C
monochromatic
#11143C #1E236B #2C339B #3C45C8 #6C73D5

Accessibility & contrast

On white

10.22
#2C339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2C339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C339B
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C339B#FFFFFF#000000##FFFFFF
##2C339B1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c339b;
/* rgb */ color: rgb(44, 51, 155);
/* oklch */ color: oklch(38.8% 0.166 272.8);
Tailwind
colors: {
  custom: {
    50: '#756bb9',
    500: '#2c339b',
    950: '#000000',
  },
}
SCSS
$custom: #2c339b;
$custom-light: #756bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c339b",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 236.216,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38831,
    "c": 0.16612,
    "h": 272.8
  },
  "luminance": 0.0527
}

Semantic roles & 50–950 ramp

primary
#2C339B
secondary
#BCB767
accent
#D649DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C339B

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

Preview Lab → · Contrast checker → · Palette generator →

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