#2C338A#2C338A

#2C338A is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.143 H 273.7°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2C338A
RGBrgb(44, 51, 138)
HSLhsl(236, 52%, 36%)
HSVhsv(236, 68%, 54%)
CMYKcmyk(68.1%, 63%, 0%, 45.9%)
CIE-LABlab(25.97, 26.73, -49.44)
CIE-LCHlch(25.97, 56.20, 298.40°)
OKLaboklab(37.26% 0.0091 -0.1425)
OKLCHoklch(37.26% 0.143 273.7)
XYZxyz(6.8085, 4.7375, 24.5955)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C338A #8A832C
analogous
#2C628A #2C338A #542C8A
triadic
#2C338A #8A2C33 #338A2C
tetradic
#2C338A #8A2C62 #8A832C #2C8A54
square
#2C338A #8A2C62 #8A832C #2C8A54
split-complementary
#2C338A #8A542C #628A2C
monochromatic
#0E112D #1D225C #2C338A #3B44B8 #636BCD

Accessibility & contrast

On white

10.78
#2C338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C338A
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C338A#FFFFFF#000000##FFFFFF
##2C338A1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c338a;
/* rgb */ color: rgb(44, 51, 138);
/* oklch */ color: oklch(37.3% 0.143 273.7);
Tailwind
colors: {
  custom: {
    50: '#716aad',
    500: '#2c338a',
    950: '#000000',
  },
}
SCSS
$custom: #2c338a;
$custom-light: #716aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c338a",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 235.532,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37255,
    "c": 0.14279,
    "h": 273.7
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

primary
#2C338A
secondary
#B4AD5E
accent
#D04DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C338A

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

Preview Lab → · Contrast checker → · Palette generator →

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