#2C2D7B#2C2D7B

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

Color values

HEX#2C2D7B
RGBrgb(44, 45, 123)
HSLhsl(239, 47%, 33%)
HSVhsv(239, 64%, 48%)
CMYKcmyk(64.2%, 63.4%, 0%, 51.8%)
CIE-LABlab(23.14, 25.28, -44.64)
CIE-LCHlch(23.14, 51.30, 299.52°)
OKLaboklab(34.77% 0.0152 -0.1284)
OKLCHoklch(34.77% 0.129 276.8)
XYZxyz(5.5511, 3.8419, 19.1841)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D7B #7B7A2C
analogous
#2C547B #2C2D7B #532C7B
triadic
#2C2D7B #7B2C2D #2D7B2C
tetradic
#2C2D7B #7B2C54 #7B7A2C #2C7B53
square
#2C2D7B #7B2C54 #7B7A2C #2C7B53
split-complementary
#2C2D7B #7B532C #547B2C
monochromatic
#0C0C21 #1C1D4E #2C2D7B #3C3DA8 #5D5EC5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C2D7B#FFFFFF#000000##FFFFFF
##2C2D7B1.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)
#003B7E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2d7b;
/* rgb */ color: rgb(44, 45, 123);
/* oklch */ color: oklch(34.8% 0.129 276.8);
Tailwind
colors: {
  custom: {
    50: '#6f66a2',
    500: '#2c2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d7b;
$custom-light: #6f66a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d7b",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 239.241,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34769,
    "c": 0.12935,
    "h": 276.8
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#2C2D7B
secondary
#ABAA58
accent
#D551D7
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2C2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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