#2C339E#2C339E

#2C339E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.170 H 272.6°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#2C339E
RGBrgb(44, 51, 158)
HSLhsl(236, 56%, 40%)
HSVhsv(236, 72%, 62%)
CMYKcmyk(72.2%, 67.7%, 0%, 38%)
CIE-LABlab(27.77, 34.00, -58.80)
CIE-LCHlch(27.77, 67.92, 300.04°)
OKLaboklab(39.12% 0.0078 -0.1699)
OKLCHoklch(39.12% 0.17 272.6)
XYZxyz(8.3920, 5.3709, 32.9355)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C339E #9E972C
analogous
#2C6C9E #2C339E #5E2C9E
triadic
#2C339E #9E2C33 #339E2C
tetradic
#2C339E #9E2C6C #9E972C #2C9E5E
square
#2C339E #9E2C6C #9E972C #2C9E5E
split-complementary
#2C339E #9E5E2C #6C9E2C
monochromatic
#11143E #1F246E #2C339E #3E47C9 #6E74D7

Accessibility & contrast

On white

10.12
#2C339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C339E
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C339E#FFFFFF#000000##FFFFFF
##2C339E1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2c339e;
/* rgb */ color: rgb(44, 51, 158);
/* oklch */ color: oklch(39.1% 0.170 272.6);
Tailwind
colors: {
  custom: {
    50: '#766bbc',
    500: '#2c339e',
    950: '#000000',
  },
}
SCSS
$custom: #2c339e;
$custom-light: #766bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c339e",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 236.316,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3912,
    "c": 0.17011,
    "h": 272.6
  },
  "luminance": 0.05372
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C339E

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

Preview Lab → · Contrast checker → · Palette generator →

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