#2C309C#2C309C

#2C309C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.171 H 273.3°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#2C309C
RGBrgb(44, 48, 156)
HSLhsl(238, 56%, 39%)
HSVhsv(238, 72%, 61%)
CMYKcmyk(71.8%, 69.2%, 0%, 38.8%)
CIE-LABlab(26.87, 35.18, -59.04)
CIE-LCHlch(26.87, 68.73, 300.79°)
OKLaboklab(38.42% 0.0099 -0.1707)
OKLCHoklch(38.42% 0.171 273.3)
XYZxyz(8.0944, 5.0489, 31.9940)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C309C #9C982C
analogous
#2C689C #2C309C #602C9C
triadic
#2C309C #9C2C30 #309C2C
tetradic
#2C309C #9C2C68 #9C982C #2C9C60
square
#2C309C #9C2C68 #9C982C #2C9C60
split-complementary
#2C309C #9C602C #689C2C
monochromatic
#11133D #1F216C #2C309C #3D42C8 #6D70D6

Accessibility & contrast

On white

10.45
#2C309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2C309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C309C
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C309C#FFFFFF#000000##FFFFFF
##2C309C1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c309c;
/* rgb */ color: rgb(44, 48, 156);
/* oklch */ color: oklch(38.4% 0.171 273.3);
Tailwind
colors: {
  custom: {
    50: '#7669ba',
    500: '#2c309c',
    950: '#000000',
  },
}
SCSS
$custom: #2c309c;
$custom-light: #7669ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c309c",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 237.857,
    "s": 56,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38415,
    "c": 0.17096,
    "h": 273.3
  },
  "luminance": 0.0505
}

Semantic roles & 50–950 ramp

primary
#2C309C
secondary
#BDBA67
accent
#DA49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C309C

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

Preview Lab → · Contrast checker → · Palette generator →

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