#2C308E#2C308E

#2C308E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.152 H 274.3°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2C308E
RGBrgb(44, 48, 142)
HSLhsl(238, 53%, 36%)
HSVhsv(238, 69%, 56%)
CMYKcmyk(69%, 66.2%, 0%, 44.3%)
CIE-LABlab(25.57, 30.17, -52.58)
CIE-LCHlch(25.57, 60.62, 299.85°)
OKLaboklab(37.07% 0.0114 -0.1517)
OKLCHoklch(37.07% 0.152 274.3)
XYZxyz(6.9765, 4.6017, 26.1065)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C308E #8E8A2C
analogous
#2C618E #2C308E #592C8E
triadic
#2C308E #8E2C30 #308E2C
tetradic
#2C308E #8E2C61 #8E8A2C #2C8E59
square
#2C308E #8E2C61 #8E8A2C #2C8E59
split-complementary
#2C308E #8E592C #618E2C
monochromatic
#0F1031 #1E205F #2C308E #3A40BD #6569CF

Accessibility & contrast

On white

10.94
#2C308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2C308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C308E
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C308E#FFFFFF#000000##FFFFFF
##2C308E1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c308e;
/* rgb */ color: rgb(44, 48, 142);
/* oklch */ color: oklch(37.1% 0.152 274.3);
Tailwind
colors: {
  custom: {
    50: '#7368b0',
    500: '#2c308e',
    950: '#000000',
  },
}
SCSS
$custom: #2c308e;
$custom-light: #7368b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c308e",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 237.551,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37067,
    "c": 0.15217,
    "h": 274.3
  },
  "luminance": 0.04602
}

Semantic roles & 50–950 ramp

primary
#2C308E
secondary
#B6B260
accent
#D64CDC
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2C308E

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

Preview Lab → · Contrast checker → · Palette generator →

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