#2C337C#2C337C

#2C337C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.0% C 0.123 H 274.3°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2C337C
RGBrgb(44, 51, 124)
HSLhsl(235, 48%, 33%)
HSVhsv(235, 65%, 49%)
CMYKcmyk(64.5%, 58.9%, 0%, 51.4%)
CIE-LABlab(24.82, 21.57, -42.54)
CIE-LCHlch(24.82, 47.69, 296.88°)
OKLaboklab(36.04% 0.0093 -0.1222)
OKLCHoklch(36.04% 0.123 274.3)
XYZxyz(5.8594, 4.3579, 19.5973)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C337C #7C752C
analogous
#2C5B7C #2C337C #4D2C7C
triadic
#2C337C #7C2C33 #337C2C
tetradic
#2C337C #7C2C5B #7C752C #2C7C4D
square
#2C337C #7C2C5B #7C752C #2C7C4D
split-complementary
#2C337C #7C4D2C #5B7C2C
monochromatic
#0C0E22 #1C204F #2C337C #3C46A9 #5D66C5

Accessibility & contrast

On white

11.22
#2C337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2C337C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C337C
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C337C#FFFFFF#000000##FFFFFF
##2C337C1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c337c;
/* rgb */ color: rgb(44, 51, 124);
/* oklch */ color: oklch(36.0% 0.123 274.3);
Tailwind
colors: {
  custom: {
    50: '#6e6aa2',
    500: '#2c337c',
    950: '#000000',
  },
}
SCSS
$custom: #2c337c;
$custom-light: #6e6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c337c",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 234.75,
    "s": 47.619,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36039,
    "c": 0.12258,
    "h": 274.3
  },
  "luminance": 0.04358
}

Semantic roles & 50–950 ramp

primary
#2C337C
secondary
#ACA458
accent
#CB51D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2C337C

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

Preview Lab → · Contrast checker → · Palette generator →

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