#2C338E#2C338E

#2C338E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.148 H 273.5°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#2C338E
RGBrgb(44, 51, 142)
HSLhsl(236, 53%, 36%)
HSVhsv(236, 69%, 56%)
CMYKcmyk(69%, 64.1%, 0%, 44.3%)
CIE-LABlab(26.32, 28.20, -51.35)
CIE-LCHlch(26.32, 58.59, 298.77°)
OKLaboklab(37.62% 0.009 -0.1481)
OKLCHoklch(37.62% 0.148 273.5)
XYZxyz(7.1034, 4.8555, 26.1488)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C338E #8E872C
analogous
#2C648E #2C338E #562C8E
triadic
#2C338E #8E2C33 #338E2C
tetradic
#2C338E #8E2C64 #8E872C #2C8E56
square
#2C338E #8E2C64 #8E872C #2C8E56
split-complementary
#2C338E #8E562C #648E2C
monochromatic
#0F1131 #1E225F #2C338E #3A44BD #656DCF

Accessibility & contrast

On white

10.65
#2C338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2C338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C338E
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C338E#FFFFFF#000000##FFFFFF
##2C338E1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c338e;
/* rgb */ color: rgb(44, 51, 142);
/* oklch */ color: oklch(37.6% 0.148 273.5);
Tailwind
colors: {
  custom: {
    50: '#726ab0',
    500: '#2c338e',
    950: '#000000',
  },
}
SCSS
$custom: #2c338e;
$custom-light: #726ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c338e",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 235.714,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37616,
    "c": 0.14839,
    "h": 273.5
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#2C338E
secondary
#B6B060
accent
#D24CDC
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2C338E

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

Preview Lab → · Contrast checker → · Palette generator →

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