#2C339D#2C339D

#2C339D is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.169 H 272.7°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#2C339D
RGBrgb(44, 51, 157)
HSLhsl(236, 56%, 39%)
HSVhsv(236, 72%, 62%)
CMYKcmyk(72%, 67.5%, 0%, 38.4%)
CIE-LABlab(27.67, 33.64, -58.34)
CIE-LCHlch(27.67, 67.34, 299.97°)
OKLaboklab(39.02% 0.0079 -0.1686)
OKLCHoklch(39.02% 0.169 272.7)
XYZxyz(8.3063, 5.3366, 32.4841)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C339D #9D962C
analogous
#2C6C9D #2C339D #5E2C9D
triadic
#2C339D #9D2C33 #339D2C
tetradic
#2C339D #9D2C6C #9D962C #2C9D5E
square
#2C339D #9D2C6C #9D962C #2C9D5E
split-complementary
#2C339D #9D5E2C #6C9D2C
monochromatic
#11143D #1F236D #2C339D #3D46C9 #6D74D6

Accessibility & contrast

On white

10.16
#2C339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2C339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C339D
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C339D#FFFFFF#000000##FFFFFF
##2C339D1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c339d;
/* rgb */ color: rgb(44, 51, 157);
/* oklch */ color: oklch(39.0% 0.169 272.7);
Tailwind
colors: {
  custom: {
    50: '#766bbb',
    500: '#2c339d',
    950: '#000000',
  },
}
SCSS
$custom: #2c339d;
$custom-light: #766bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c339d",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 236.283,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39023,
    "c": 0.16878,
    "h": 272.7
  },
  "luminance": 0.05337
}

Semantic roles & 50–950 ramp

primary
#2C339D
secondary
#BDB868
accent
#D648E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C339D

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

Preview Lab → · Contrast checker → · Palette generator →

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