#2C309E#2C309E

#2C309E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.174 H 273.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2C309E
RGBrgb(44, 48, 158)
HSLhsl(238, 56%, 40%)
HSVhsv(238, 72%, 62%)
CMYKcmyk(72.2%, 69.6%, 0%, 38%)
CIE-LABlab(27.07, 35.89, -59.95)
CIE-LCHlch(27.07, 69.87, 300.91°)
OKLaboklab(38.61% 0.0097 -0.1733)
OKLCHoklch(38.61% 0.174 273.2)
XYZxyz(8.2651, 5.1172, 32.8933)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C309E #9E9A2C
analogous
#2C699E #2C309E #612C9E
triadic
#2C309E #9E2C30 #309E2C
tetradic
#2C309E #9E2C69 #9E9A2C #2C9E61
square
#2C309E #9E2C69 #9E9A2C #2C9E61
split-complementary
#2C309E #9E612C #699E2C
monochromatic
#11133E #1F216E #2C309E #3E43C9 #6E72D7

Accessibility & contrast

On white

10.38
#2C309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C309E
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C309E#FFFFFF#000000##FFFFFF
##2C309E1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c309e;
/* rgb */ color: rgb(44, 48, 158);
/* oklch */ color: oklch(38.6% 0.174 273.2);
Tailwind
colors: {
  custom: {
    50: '#7669bc',
    500: '#2c309e',
    950: '#000000',
  },
}
SCSS
$custom: #2c309e;
$custom-light: #7669bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c309e",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 237.895,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38612,
    "c": 0.17357,
    "h": 273.2
  },
  "luminance": 0.05118
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C309E

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

Preview Lab → · Contrast checker → · Palette generator →

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