#2C336B#2C336B

#2C336B is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.7% C 0.097 H 274.8°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2C336B
RGBrgb(44, 51, 107)
HSLhsl(233, 42%, 30%)
HSVhsv(233, 59%, 42%)
CMYKcmyk(58.9%, 52.3%, 0%, 58%)
CIE-LABlab(23.55, 15.29, -33.74)
CIE-LCHlch(23.55, 37.04, 294.38°)
OKLaboklab(34.68% 0.0081 -0.0963)
OKLCHoklch(34.68% 0.097 274.8)
XYZxyz(4.8755, 3.9643, 14.4153)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C336B #6B642C
analogous
#2C536B #2C336B #442C6B
triadic
#2C336B #6B2C33 #336B2C
tetradic
#2C336B #6B2C53 #6B642C #2C6B44
square
#2C336B #6B2C53 #6B642C #2C6B44
split-complementary
#2C336B #6B442C #536B2C
monochromatic
#090A16 #1A1E40 #2C336B #3E4896 #5762BA

Accessibility & contrast

On white

11.71
#2C336B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2C336B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C336B
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C336B#FFFFFF#000000##FFFFFF
##2C336B1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6D
Deuteranopia (green-blind)
#0E366A
Tritanopia (blue-blind)
#09404A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c336b;
/* rgb */ color: rgb(44, 51, 107);
/* oklch */ color: oklch(34.7% 0.097 274.8);
Tailwind
colors: {
  custom: {
    50: '#6b6a96',
    500: '#2c336b',
    950: '#000000',
  },
}
SCSS
$custom: #2c336b;
$custom-light: #6b6a96;
$custom-dark: #000000;
JSON
{
  "hex": "#2c336b",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 233.333,
    "s": 41.722,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34684,
    "c": 0.09668,
    "h": 274.8
  },
  "luminance": 0.03965
}

Semantic roles & 50–950 ramp

primary
#2C336B
secondary
#9D9556
accent
#C456D2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2C336B

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

Preview Lab → · Contrast checker → · Palette generator →

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