#2C335E#2C335E

#2C335E is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.8% C 0.076 H 274.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2C335E
RGBrgb(44, 51, 94)
HSLhsl(232, 36%, 27%)
HSVhsv(232, 53%, 37%)
CMYKcmyk(53.2%, 45.7%, 0%, 63.1%)
CIE-LABlab(22.69, 10.58, -26.66)
CIE-LCHlch(22.69, 28.69, 291.65°)
OKLaboklab(33.75% 0.0061 -0.0756)
OKLCHoklch(33.75% 0.076 274.6)
XYZxyz(4.2423, 3.7110, 11.0803)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C335E #5E572C
analogous
#2C4C5E #2C335E #3E2C5E
triadic
#2C335E #5E2C33 #335E2C
tetradic
#2C335E #5E2C4C #5E572C #2C5E3E
square
#2C335E #5E2C4C #5E572C #2C5E3E
split-complementary
#2C335E #5E3E2C #4C5E2C
monochromatic
#0A0B15 #181C34 #2C335E #404A88 #5562AF

Accessibility & contrast

On white

12.05
#2C335E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C335E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C335E
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C335E#FFFFFF#000000##FFFFFF
##2C335E1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223860
Deuteranopia (green-blind)
#1D345D
Tritanopia (blue-blind)
#183C44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c335e;
/* rgb */ color: rgb(44, 51, 94);
/* oklch */ color: oklch(33.8% 0.076 274.6);
Tailwind
colors: {
  custom: {
    50: '#696a8c',
    500: '#2c335e',
    950: '#000000',
  },
}
SCSS
$custom: #2c335e;
$custom-light: #696a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c335e",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 94
  },
  "hsl": {
    "h": 231.6,
    "s": 36.232,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33751,
    "c": 0.07582,
    "h": 274.6
  },
  "luminance": 0.03711
}

Semantic roles & 50–950 ramp

primary
#2C335E
secondary
#908856
accent
#BC5CCC
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #2C335E

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

Preview Lab → · Contrast checker → · Palette generator →

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