#2C338F#2C338F

#2C338F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.150 H 273.4°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#2C338F
RGBrgb(44, 51, 143)
HSLhsl(236, 53%, 37%)
HSVhsv(236, 69%, 56%)
CMYKcmyk(69.2%, 64.3%, 0%, 43.9%)
CIE-LABlab(26.41, 28.57, -51.83)
CIE-LCHlch(26.41, 59.18, 298.86°)
OKLaboklab(37.71% 0.0089 -0.1495)
OKLCHoklch(37.71% 0.15 273.4)
XYZxyz(7.1788, 4.8856, 26.5460)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C338F #8F882C
analogous
#2C658F #2C338F #572C8F
triadic
#2C338F #8F2C33 #338F2C
tetradic
#2C338F #8F2C65 #8F882C #2C8F57
square
#2C338F #8F2C65 #8F882C #2C8F57
split-complementary
#2C338F #8F572C #658F2C
monochromatic
#0F1231 #1E2260 #2C338F #3A44BE #666DD0

Accessibility & contrast

On white

10.62
#2C338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2C338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C338F
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C338F#FFFFFF#000000##FFFFFF
##2C338F1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#004A5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c338f;
/* rgb */ color: rgb(44, 51, 143);
/* oklch */ color: oklch(37.7% 0.150 273.4);
Tailwind
colors: {
  custom: {
    50: '#736ab1',
    500: '#2c338f',
    950: '#000000',
  },
}
SCSS
$custom: #2c338f;
$custom-light: #736ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c338f",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 235.758,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37708,
    "c": 0.14979,
    "h": 273.4
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#2C338F
secondary
#B6B061
accent
#D24BDC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2C338F

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

Preview Lab → · Contrast checker → · Palette generator →

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