#2C339F#2C339F

#2C339F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.171 H 272.6°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#2C339F
RGBrgb(44, 51, 159)
HSLhsl(236, 57%, 40%)
HSVhsv(236, 72%, 62%)
CMYKcmyk(72.3%, 67.9%, 0%, 37.6%)
CIE-LABlab(27.86, 34.35, -59.25)
CIE-LCHlch(27.86, 68.49, 300.11°)
OKLaboklab(39.22% 0.0077 -0.1713)
OKLCHoklch(39.22% 0.171 272.6)
XYZxyz(8.4784, 5.4055, 33.3907)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C339F #9F982C
analogous
#2C6C9F #2C339F #5F2C9F
triadic
#2C339F #9F2C33 #339F2C
tetradic
#2C339F #9F2C6C #9F982C #2C9F5F
square
#2C339F #9F2C6C #9F982C #2C9F5F
split-complementary
#2C339F #9F5F2C #6C9F2C
monochromatic
#11143F #1F246F #2C339F #3E47CA #6E75D7

Accessibility & contrast

On white

10.09
#2C339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2C339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C339F
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C339F#FFFFFF#000000##FFFFFF
##2C339F1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2c339f;
/* rgb */ color: rgb(44, 51, 159);
/* oklch */ color: oklch(39.2% 0.171 272.6);
Tailwind
colors: {
  custom: {
    50: '#766bbc',
    500: '#2c339f',
    950: '#000000',
  },
}
SCSS
$custom: #2c339f;
$custom-light: #766bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c339f",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 236.348,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39216,
    "c": 0.17143,
    "h": 272.6
  },
  "luminance": 0.05406
}

Semantic roles & 50–950 ramp

primary
#2C339F
secondary
#BEB969
accent
#D748E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C339F

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

Preview Lab → · Contrast checker → · Palette generator →

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