#2C308A#2C308A

#2C308A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.147 H 274.6°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2C308A
RGBrgb(44, 48, 138)
HSLhsl(237, 52%, 36%)
HSVhsv(237, 68%, 54%)
CMYKcmyk(68.1%, 65.2%, 0%, 45.9%)
CIE-LABlab(25.21, 28.73, -50.68)
CIE-LCHlch(25.21, 58.26, 299.54°)
OKLaboklab(36.69% 0.0117 -0.1462)
OKLCHoklch(36.69% 0.147 274.6)
XYZxyz(6.6816, 4.4838, 24.5532)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C308A #8A862C
analogous
#2C5F8A #2C308A #572C8A
triadic
#2C308A #8A2C30 #308A2C
tetradic
#2C308A #8A2C5F #8A862C #2C8A57
square
#2C308A #8A2C5F #8A862C #2C8A57
split-complementary
#2C308A #8A572C #5F8A2C
monochromatic
#0E102D #1D205C #2C308A #3B40B8 #6368CD

Accessibility & contrast

On white

11.07
#2C308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2C308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C308A
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C308A#FFFFFF#000000##FFFFFF
##2C308A1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c308a;
/* rgb */ color: rgb(44, 48, 138);
/* oklch */ color: oklch(36.7% 0.147 274.6);
Tailwind
colors: {
  custom: {
    50: '#7268ad',
    500: '#2c308a',
    950: '#000000',
  },
}
SCSS
$custom: #2c308a;
$custom-light: #7268ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c308a",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 237.447,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36694,
    "c": 0.14665,
    "h": 274.6
  },
  "luminance": 0.04484
}

Semantic roles & 50–950 ramp

primary
#2C308A
secondary
#B4B05E
accent
#D54DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C308A

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

Preview Lab → · Contrast checker → · Palette generator →

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