#2C2D8B#2C2D8B

#2C2D8B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.152 H 275.3°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#2C2D8B
RGBrgb(44, 45, 139)
HSLhsl(239, 52%, 36%)
HSVhsv(239, 68%, 55%)
CMYKcmyk(68.3%, 67.6%, 0%, 45.5%)
CIE-LABlab(24.56, 31.04, -52.36)
CIE-LCHlch(24.56, 60.87, 300.66°)
OKLaboklab(36.25% 0.014 -0.1511)
OKLCHoklch(36.25% 0.152 275.3)
XYZxyz(6.6358, 4.2757, 24.8967)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D8B #8B8A2C
analogous
#2C5C8B #2C2D8B #5A2C8B
triadic
#2C2D8B #8B2C2D #2D8B2C
tetradic
#2C2D8B #8B2C5C #8B8A2C #2C8B5A
square
#2C2D8B #8B2C5C #8B8A2C #2C8B5A
split-complementary
#2C2D8B #8B5A2C #5C8B2C
monochromatic
#0F0F2E #1D1E5D #2C2D8B #3B3CB9 #6465CE

Accessibility & contrast

On white

11.32
#2C2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2C2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2D8B
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2D8B#FFFFFF#000000##FFFFFF
##2C2D8B1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c2d8b;
/* rgb */ color: rgb(44, 45, 139);
/* oklch */ color: oklch(36.2% 0.152 275.3);
Tailwind
colors: {
  custom: {
    50: '#7266ae',
    500: '#2c2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d8b;
$custom-light: #7266ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d8b",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 239.368,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36249,
    "c": 0.15177,
    "h": 275.3
  },
  "luminance": 0.04276
}

Semantic roles & 50–950 ramp

primary
#2C2D8B
secondary
#B4B35F
accent
#DA4CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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