#2C337B#2C337B

#2C337B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.121 H 274.4°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2C337B
RGBrgb(44, 51, 123)
HSLhsl(235, 47%, 33%)
HSVhsv(235, 64%, 48%)
CMYKcmyk(64.2%, 58.5%, 0%, 51.8%)
CIE-LABlab(24.74, 21.20, -42.04)
CIE-LCHlch(24.74, 47.08, 296.76°)
OKLaboklab(35.96% 0.0093 -0.1207)
OKLCHoklch(35.96% 0.121 274.4)
XYZxyz(5.7965, 4.3327, 19.2659)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C337B #7B742C
analogous
#2C5A7B #2C337B #4D2C7B
triadic
#2C337B #7B2C33 #337B2C
tetradic
#2C337B #7B2C5A #7B742C #2C7B4D
square
#2C337B #7B2C5A #7B742C #2C7B4D
split-complementary
#2C337B #7B4D2C #5A7B2C
monochromatic
#0C0E21 #1C204E #2C337B #3C46A8 #5D66C5

Accessibility & contrast

On white

11.25
#2C337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C337B
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C337B#FFFFFF#000000##FFFFFF
##2C337B1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c337b;
/* rgb */ color: rgb(44, 51, 123);
/* oklch */ color: oklch(36.0% 0.121 274.4);
Tailwind
colors: {
  custom: {
    50: '#6e6aa2',
    500: '#2c337b',
    950: '#000000',
  },
}
SCSS
$custom: #2c337b;
$custom-light: #6e6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c337b",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 234.684,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35955,
    "c": 0.1211,
    "h": 274.4
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#2C337B
secondary
#ABA458
accent
#CB51D7
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2C337B

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

Preview Lab → · Contrast checker → · Palette generator →

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