#2C337F#2C337F

#2C337F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.127 H 274.2°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#2C337F
RGBrgb(44, 51, 127)
HSLhsl(235, 49%, 34%)
HSVhsv(235, 65%, 50%)
CMYKcmyk(65.4%, 59.8%, 0%, 50.2%)
CIE-LABlab(25.06, 22.68, -44.04)
CIE-LCHlch(25.06, 49.54, 297.24°)
OKLaboklab(36.29% 0.0093 -0.1267)
OKLCHoklch(36.29% 0.127 274.2)
XYZxyz(6.0520, 4.4349, 20.6117)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C337F #7F782C
analogous
#2C5C7F #2C337F #4E2C7F
triadic
#2C337F #7F2C33 #337F2C
tetradic
#2C337F #7F2C5C #7F782C #2C7F4E
square
#2C337F #7F2C5C #7F782C #2C7F4E
split-complementary
#2C337F #7F4E2C #5C7F2C
monochromatic
#0D0E24 #1C2152 #2C337F #3C45AC #5E67C7

Accessibility & contrast

On white

11.13
#2C337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2C337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C337F
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C337F#FFFFFF#000000##FFFFFF
##2C337F1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c337f;
/* rgb */ color: rgb(44, 51, 127);
/* oklch */ color: oklch(36.3% 0.127 274.2);
Tailwind
colors: {
  custom: {
    50: '#6f6aa5',
    500: '#2c337f',
    950: '#000000',
  },
}
SCSS
$custom: #2c337f;
$custom-light: #6f6aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c337f",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 234.94,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36292,
    "c": 0.12699,
    "h": 274.2
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C337F

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

Preview Lab → · Contrast checker → · Palette generator →

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