#2C2D98#2C2D98

#2C2D98 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.169 H 274.2°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2C2D98
RGBrgb(44, 45, 152)
HSLhsl(239, 55%, 38%)
HSVhsv(239, 71%, 60%)
CMYKcmyk(71.1%, 70.4%, 0%, 40.4%)
CIE-LABlab(25.80, 35.64, -58.36)
CIE-LCHlch(25.80, 68.39, 301.41°)
OKLaboklab(37.52% 0.0124 -0.1687)
OKLCHoklch(37.52% 0.169 274.2)
XYZxyz(7.6427, 4.6785, 30.1999)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D98 #98972C
analogous
#2C6398 #2C2D98 #612C98
triadic
#2C2D98 #982C2D #2D982C
tetradic
#2C2D98 #982C63 #98972C #2C9861
square
#2C2D98 #982C63 #98972C #2C9861
split-complementary
#2C2D98 #98612C #63982C
monochromatic
#111139 #1E1F69 #2C2D98 #3B3CC6 #6A6BD4

Accessibility & contrast

On white

10.85
#2C2D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2C2D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2D98
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2D98#FFFFFF#000000##FFFFFF
##2C2D981.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c2d98;
/* rgb */ color: rgb(44, 45, 152);
/* oklch */ color: oklch(37.5% 0.169 274.2);
Tailwind
colors: {
  custom: {
    50: '#7567b7',
    500: '#2c2d98',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d98;
$custom-light: #7567b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d98",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 239.444,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37521,
    "c": 0.16914,
    "h": 274.2
  },
  "luminance": 0.04679
}

Semantic roles & 50–950 ramp

primary
#2C2D98
secondary
#BBBA65
accent
#DD49DE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2C2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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