#2C338D#2C338D

#2C338D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.147 H 273.5°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#2C338D
RGBrgb(44, 51, 141)
HSLhsl(236, 52%, 36%)
HSVhsv(236, 69%, 55%)
CMYKcmyk(68.8%, 63.8%, 0%, 44.7%)
CIE-LABlab(26.23, 27.83, -50.88)
CIE-LCHlch(26.23, 57.99, 298.68°)
OKLaboklab(37.53% 0.009 -0.1467)
OKLCHoklch(37.53% 0.147 273.5)
XYZxyz(7.0286, 4.8256, 25.7552)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C338D #8D862C
analogous
#2C648D #2C338D #562C8D
triadic
#2C338D #8D2C33 #338D2C
tetradic
#2C338D #8D2C64 #8D862C #2C8D56
square
#2C338D #8D2C64 #8D862C #2C8D56
split-complementary
#2C338D #8D562C #648D2C
monochromatic
#0F1130 #1D225E #2C338D #3B44BC #656CCF

Accessibility & contrast

On white

10.69
#2C338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2C338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C338D
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C338D#FFFFFF#000000##FFFFFF
##2C338D1.0010.691.9710.69
#FFFFFF10.691.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c338d;
/* rgb */ color: rgb(44, 51, 141);
/* oklch */ color: oklch(37.5% 0.147 273.5);
Tailwind
colors: {
  custom: {
    50: '#726aaf',
    500: '#2c338d',
    950: '#000000',
  },
}
SCSS
$custom: #2c338d;
$custom-light: #726aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c338d",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 235.67,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37525,
    "c": 0.14701,
    "h": 273.5
  },
  "luminance": 0.04826
}

Semantic roles & 50–950 ramp

primary
#2C338D
secondary
#B5AF60
accent
#D14CDC
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C338D

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

Preview Lab → · Contrast checker → · Palette generator →

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