#2C338C#2C338C

#2C338C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.4% C 0.146 H 273.6°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#2C338C
RGBrgb(44, 51, 140)
HSLhsl(236, 52%, 36%)
HSVhsv(236, 69%, 55%)
CMYKcmyk(68.6%, 63.6%, 0%, 45.1%)
CIE-LABlab(26.15, 27.47, -50.40)
CIE-LCHlch(26.15, 57.40, 298.59°)
OKLaboklab(37.44% 0.0091 -0.1453)
OKLCHoklch(37.44% 0.146 273.6)
XYZxyz(6.9546, 4.7959, 25.3651)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C338C #8C852C
analogous
#2C638C #2C338C #552C8C
triadic
#2C338C #8C2C33 #338C2C
tetradic
#2C338C #8C2C63 #8C852C #2C8C55
square
#2C338C #8C2C63 #8C852C #2C8C55
split-complementary
#2C338C #8C552C #638C2C
monochromatic
#0F112F #1D225D #2C338C #3B44BB #646CCE

Accessibility & contrast

On white

10.72
#2C338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2C338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C338C
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C338C#FFFFFF#000000##FFFFFF
##2C338C1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c338c;
/* rgb */ color: rgb(44, 51, 140);
/* oklch */ color: oklch(37.4% 0.146 273.6);
Tailwind
colors: {
  custom: {
    50: '#726aae',
    500: '#2c338c',
    950: '#000000',
  },
}
SCSS
$custom: #2c338c;
$custom-light: #726aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c338c",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 235.625,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37435,
    "c": 0.1456,
    "h": 273.6
  },
  "luminance": 0.04797
}

Semantic roles & 50–950 ramp

primary
#2C338C
secondary
#B5AE5F
accent
#D14CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C338C

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

Preview Lab → · Contrast checker → · Palette generator →

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