#2C2098#2C2098

#2C2098 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.183 H 276.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#2C2098
RGBrgb(44, 32, 152)
HSLhsl(246, 65%, 36%)
HSVhsv(246, 79%, 60%)
CMYKcmyk(71.1%, 78.9%, 0%, 40.4%)
CIE-LABlab(23.12, 43.15, -62.78)
CIE-LCHlch(23.12, 76.18, 304.50°)
OKLaboklab(35.62% 0.0198 -0.1815)
OKLCHoklch(35.62% 0.183 276.2)
XYZxyz(7.2209, 3.8348, 30.0593)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2098 #8C9820
analogous
#205098 #2C2098 #682098
triadic
#2C2098 #982C20 #20982C
tetradic
#2C2098 #982050 #8C9820 #209868
square
#2C2098 #982050 #8C9820 #209868
split-complementary
#2C2098 #986820 #509820
monochromatic
#0F0B33 #1D1565 #2C2098 #3B2BCB #6457DC

Accessibility & contrast

On white

11.88
#2C2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2C2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2098
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2098#FFFFFF#000000##FFFFFF
##2C20981.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2098;
/* rgb */ color: rgb(44, 32, 152);
/* oklch */ color: oklch(35.6% 0.183 276.2);
Tailwind
colors: {
  custom: {
    50: '#765eb8',
    500: '#2c2098',
    950: '#000000',
  },
}
SCSS
$custom: #2c2098;
$custom-light: #765eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2098",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 246,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35616,
    "c": 0.18256,
    "h": 276.2
  },
  "luminance": 0.03835
}

Semantic roles & 50–950 ramp

primary
#2C2098
secondary
#B5BF54
accent
#E840D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2C2098

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

Preview Lab → · Contrast checker → · Palette generator →

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