#2C2C74#2C2C74

#2C2C74 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.121 H 277.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2C2C74
RGBrgb(44, 44, 116)
HSLhsl(240, 45%, 31%)
HSVhsv(240, 62%, 45%)
CMYKcmyk(62.1%, 62.1%, 0%, 54.5%)
CIE-LABlab(22.29, 23.42, -41.56)
CIE-LCHlch(22.29, 47.70, 299.40°)
OKLaboklab(33.96% 0.0165 -0.1194)
OKLCHoklch(33.96% 0.121 277.8)
XYZxyz(5.0908, 3.5974, 16.9457)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2C74 #74742C
analogous
#2C5074 #2C2C74 #502C74
triadic
#2C2C74 #742C2C #2C742C
tetradic
#2C2C74 #742C50 #74742C #2C7450
square
#2C2C74 #742C50 #74742C #2C7450
split-complementary
#2C2C74 #74502C #50742C
monochromatic
#0A0A1B #1B1B48 #2C2C74 #3D3DA0 #5A5AC0

Accessibility & contrast

On white

12.21
#2C2C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2C2C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2C74
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2C74#FFFFFF#000000##FFFFFF
##2C2C741.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#003273
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c2c74;
/* rgb */ color: rgb(44, 44, 116);
/* oklch */ color: oklch(34.0% 0.121 277.8);
Tailwind
colors: {
  custom: {
    50: '#6d659d',
    500: '#2c2c74',
    950: '#000000',
  },
}
SCSS
$custom: #2c2c74;
$custom-light: #6d659d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2c74",
  "rgb": {
    "r": 44,
    "g": 44,
    "b": 116
  },
  "hsl": {
    "h": 240,
    "s": 45,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3396,
    "c": 0.12054,
    "h": 277.8
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#2C2C74
secondary
#A6A656
accent
#D553D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2C2C74

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

Preview Lab → · Contrast checker → · Palette generator →

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