#2C309F#2C309F

#2C309F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.175 H 273.1°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2C309F
RGBrgb(44, 48, 159)
HSLhsl(238, 57%, 40%)
HSVhsv(238, 72%, 62%)
CMYKcmyk(72.3%, 69.8%, 0%, 37.6%)
CIE-LABlab(27.16, 36.24, -60.40)
CIE-LCHlch(27.16, 70.43, 300.97°)
OKLaboklab(38.71% 0.0096 -0.1746)
OKLCHoklch(38.71% 0.175 273.1)
XYZxyz(8.3516, 5.1518, 33.3484)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C309F #9F9B2C
analogous
#2C6A9F #2C309F #622C9F
triadic
#2C309F #9F2C30 #309F2C
tetradic
#2C309F #9F2C6A #9F9B2C #2C9F62
square
#2C309F #9F2C6A #9F9B2C #2C9F62
split-complementary
#2C309F #9F622C #6A9F2C
monochromatic
#11133F #1F226F #2C309F #3E43CA #6E72D7

Accessibility & contrast

On white

10.34
#2C309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2C309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C309F
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C309F#FFFFFF#000000##FFFFFF
##2C309F1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c309f;
/* rgb */ color: rgb(44, 48, 159);
/* oklch */ color: oklch(38.7% 0.175 273.1);
Tailwind
colors: {
  custom: {
    50: '#7769bc',
    500: '#2c309f',
    950: '#000000',
  },
}
SCSS
$custom: #2c309f;
$custom-light: #7769bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c309f",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 237.913,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38712,
    "c": 0.17488,
    "h": 273.1
  },
  "luminance": 0.05153
}

Semantic roles & 50–950 ramp

primary
#2C309F
secondary
#BEBB69
accent
#DB48E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C309F

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

Preview Lab → · Contrast checker → · Palette generator →

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