#2C309D#2C309D

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

Color values

HEX#2C309D
RGBrgb(44, 48, 157)
HSLhsl(238, 56%, 39%)
HSVhsv(238, 72%, 62%)
CMYKcmyk(72%, 69.4%, 0%, 38.4%)
CIE-LABlab(26.97, 35.53, -59.50)
CIE-LCHlch(26.97, 69.30, 300.85°)
OKLaboklab(38.51% 0.0098 -0.172)
OKLCHoklch(38.51% 0.172 273.3)
XYZxyz(8.1794, 5.0829, 32.4418)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C309D #9D992C
analogous
#2C699D #2C309D #612C9D
triadic
#2C309D #9D2C30 #309D2C
tetradic
#2C309D #9D2C69 #9D992C #2C9D61
square
#2C309D #9D2C69 #9D992C #2C9D61
split-complementary
#2C309D #9D612C #699D2C
monochromatic
#11133D #1F216D #2C309D #3D42C9 #6D71D6

Accessibility & contrast

On white

10.41
#2C309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2C309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C309D
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C309D#FFFFFF#000000##FFFFFF
##2C309D1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c309d;
/* rgb */ color: rgb(44, 48, 157);
/* oklch */ color: oklch(38.5% 0.172 273.3);
Tailwind
colors: {
  custom: {
    50: '#7669bb',
    500: '#2c309d',
    950: '#000000',
  },
}
SCSS
$custom: #2c309d;
$custom-light: #7669bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c309d",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 237.876,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38513,
    "c": 0.17227,
    "h": 273.3
  },
  "luminance": 0.05084
}

Semantic roles & 50–950 ramp

primary
#2C309D
secondary
#BDBA68
accent
#DA48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C309D

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

Preview Lab → · Contrast checker → · Palette generator →

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