#2C337E#2C337E

#2C337E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.126 H 274.3°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#2C337E
RGBrgb(44, 51, 126)
HSLhsl(235, 48%, 33%)
HSVhsv(235, 65%, 49%)
CMYKcmyk(65.1%, 59.5%, 0%, 50.6%)
CIE-LABlab(24.98, 22.31, -43.54)
CIE-LCHlch(24.98, 48.92, 297.13°)
OKLaboklab(36.21% 0.0093 -0.1252)
OKLCHoklch(36.21% 0.126 274.3)
XYZxyz(5.9872, 4.4090, 20.2701)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C337E #7E772C
analogous
#2C5C7E #2C337E #4E2C7E
triadic
#2C337E #7E2C33 #337E2C
tetradic
#2C337E #7E2C5C #7E772C #2C7E4E
square
#2C337E #7E2C5C #7E772C #2C7E4E
split-complementary
#2C337E #7E4E2C #5C7E2C
monochromatic
#0C0E23 #1C2151 #2C337E #3C45AB #5E67C7

Accessibility & contrast

On white

11.16
#2C337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2C337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C337E
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C337E#FFFFFF#000000##FFFFFF
##2C337E1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c337e;
/* rgb */ color: rgb(44, 51, 126);
/* oklch */ color: oklch(36.2% 0.126 274.3);
Tailwind
colors: {
  custom: {
    50: '#6f6aa4',
    500: '#2c337e',
    950: '#000000',
  },
}
SCSS
$custom: #2c337e;
$custom-light: #6f6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c337e",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 234.878,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36207,
    "c": 0.12553,
    "h": 274.3
  },
  "luminance": 0.04409
}

Semantic roles & 50–950 ramp

primary
#2C337E
secondary
#ADA659
accent
#CC50D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2C337E

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

Preview Lab → · Contrast checker → · Palette generator →

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