#2C338B#2C338B

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

Color values

HEX#2C338B
RGBrgb(44, 51, 139)
HSLhsl(236, 52%, 36%)
HSVhsv(236, 68%, 55%)
CMYKcmyk(68.3%, 63.3%, 0%, 45.5%)
CIE-LABlab(26.06, 27.10, -49.92)
CIE-LCHlch(26.06, 56.80, 298.50°)
OKLaboklab(37.34% 0.0091 -0.1439)
OKLCHoklch(37.34% 0.144 273.6)
XYZxyz(6.8812, 4.7666, 24.9785)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C338B #8B842C
analogous
#2C628B #2C338B #542C8B
triadic
#2C338B #8B2C33 #338B2C
tetradic
#2C338B #8B2C62 #8B842C #2C8B54
square
#2C338B #8B2C62 #8B842C #2C8B54
split-complementary
#2C338B #8B542C #628B2C
monochromatic
#0F112E #1D225D #2C338B #3B44B9 #646BCE

Accessibility & contrast

On white

10.75
#2C338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2C338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C338B
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C338B#FFFFFF#000000##FFFFFF
##2C338B1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c338b;
/* rgb */ color: rgb(44, 51, 139);
/* oklch */ color: oklch(37.3% 0.144 273.6);
Tailwind
colors: {
  custom: {
    50: '#726aae',
    500: '#2c338b',
    950: '#000000',
  },
}
SCSS
$custom: #2c338b;
$custom-light: #726aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c338b",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 235.579,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37344,
    "c": 0.1442,
    "h": 273.6
  },
  "luminance": 0.04767
}

Semantic roles & 50–950 ramp

primary
#2C338B
secondary
#B4AE5F
accent
#D14CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C338B

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

Preview Lab → · Contrast checker → · Palette generator →

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