#2C337A#2C337A

#2C337A is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.9% C 0.120 H 274.4°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2C337A
RGBrgb(44, 51, 122)
HSLhsl(235, 47%, 33%)
HSVhsv(235, 64%, 48%)
CMYKcmyk(63.9%, 58.2%, 0%, 52.2%)
CIE-LABlab(24.66, 20.83, -41.53)
CIE-LCHlch(24.66, 46.46, 296.63°)
OKLaboklab(35.87% 0.0092 -0.1193)
OKLCHoklch(35.87% 0.12 274.4)
XYZxyz(5.7342, 4.3078, 18.9379)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C337A #7A732C
analogous
#2C5A7A #2C337A #4C2C7A
triadic
#2C337A #7A2C33 #337A2C
tetradic
#2C337A #7A2C5A #7A732C #2C7A4C
square
#2C337A #7A2C5A #7A732C #2C7A4C
split-complementary
#2C337A #7A4C2C #5A7A2C
monochromatic
#0C0D20 #1C204D #2C337A #3C46A7 #5C65C4

Accessibility & contrast

On white

11.28
#2C337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2C337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C337A
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C337A#FFFFFF#000000##FFFFFF
##2C337A1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c337a;
/* rgb */ color: rgb(44, 51, 122);
/* oklch */ color: oklch(35.9% 0.120 274.4);
Tailwind
colors: {
  custom: {
    50: '#6e6aa1',
    500: '#2c337a',
    950: '#000000',
  },
}
SCSS
$custom: #2c337a;
$custom-light: #6e6aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c337a",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 234.615,
    "s": 46.988,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35872,
    "c": 0.11962,
    "h": 274.4
  },
  "luminance": 0.04308
}

Semantic roles & 50–950 ramp

primary
#2C337A
secondary
#AAA357
accent
#CB51D7
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2C337A

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

Preview Lab → · Contrast checker → · Palette generator →

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