#2C339A#2C339A

#2C339A is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.165 H 272.8°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2C339A
RGBrgb(44, 51, 154)
HSLhsl(236, 56%, 39%)
HSVhsv(236, 71%, 60%)
CMYKcmyk(71.4%, 66.9%, 0%, 39.6%)
CIE-LABlab(27.40, 32.56, -56.97)
CIE-LCHlch(27.40, 65.62, 299.75°)
OKLaboklab(38.74% 0.0081 -0.1646)
OKLCHoklch(38.74% 0.165 272.8)
XYZxyz(8.0533, 5.2354, 31.1517)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C339A #9A932C
analogous
#2C6A9A #2C339A #5C2C9A
triadic
#2C339A #9A2C33 #339A2C
tetradic
#2C339A #9A2C6A #9A932C #2C9A5C
square
#2C339A #9A2C6A #9A932C #2C9A5C
split-complementary
#2C339A #9A5C2C #6A9A2C
monochromatic
#11133B #1E236A #2C339A #3C45C7 #6C72D5

Accessibility & contrast

On white

10.26
#2C339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C339A
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C339A#FFFFFF#000000##FFFFFF
##2C339A1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003C98
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c339a;
/* rgb */ color: rgb(44, 51, 154);
/* oklch */ color: oklch(38.7% 0.165 272.8);
Tailwind
colors: {
  custom: {
    50: '#756bb9',
    500: '#2c339a',
    950: '#000000',
  },
}
SCSS
$custom: #2c339a;
$custom-light: #756bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c339a",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 236.182,
    "s": 55.556,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38736,
    "c": 0.16478,
    "h": 272.8
  },
  "luminance": 0.05236
}

Semantic roles & 50–950 ramp

primary
#2C339A
secondary
#BCB666
accent
#D549DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C339A

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

Preview Lab → · Contrast checker → · Palette generator →

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