#2C308C#2C308C

#2C308C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.149 H 274.4°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#2C308C
RGBrgb(44, 48, 140)
HSLhsl(238, 52%, 36%)
HSVhsv(238, 69%, 55%)
CMYKcmyk(68.6%, 65.7%, 0%, 45.1%)
CIE-LABlab(25.39, 29.45, -51.63)
CIE-LCHlch(25.39, 59.44, 299.70°)
OKLaboklab(36.88% 0.0115 -0.149)
OKLCHoklch(36.88% 0.149 274.4)
XYZxyz(6.8277, 4.5422, 25.3228)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C308C #8C882C
analogous
#2C608C #2C308C #582C8C
triadic
#2C308C #8C2C30 #308C2C
tetradic
#2C308C #8C2C60 #8C882C #2C8C58
square
#2C308C #8C2C60 #8C882C #2C8C58
split-complementary
#2C308C #8C582C #608C2C
monochromatic
#0F102F #1D205D #2C308C #3B40BB #6469CE

Accessibility & contrast

On white

11.00
#2C308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2C308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C308C
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C308C#FFFFFF#000000##FFFFFF
##2C308C1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c308c;
/* rgb */ color: rgb(44, 48, 140);
/* oklch */ color: oklch(36.9% 0.149 274.4);
Tailwind
colors: {
  custom: {
    50: '#7268ae',
    500: '#2c308c',
    950: '#000000',
  },
}
SCSS
$custom: #2c308c;
$custom-light: #7268ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c308c",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 237.5,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3688,
    "c": 0.14941,
    "h": 274.4
  },
  "luminance": 0.04543
}

Semantic roles & 50–950 ramp

primary
#2C308C
secondary
#B5B15F
accent
#D64CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C308C

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

Preview Lab → · Contrast checker → · Palette generator →

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