#2C318E#2C318E

#2C318E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.151 H 274.0°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2C318E
RGBrgb(44, 49, 142)
HSLhsl(237, 53%, 36%)
HSVhsv(237, 69%, 56%)
CMYKcmyk(69%, 65.5%, 0%, 44.3%)
CIE-LABlab(25.82, 29.52, -52.17)
CIE-LCHlch(25.82, 59.95, 299.50°)
OKLaboklab(37.25% 0.0106 -0.1505)
OKLCHoklch(37.25% 0.151 274)
XYZxyz(7.0179, 4.6845, 26.1203)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C318E #8E892C
analogous
#2C628E #2C318E #582C8E
triadic
#2C318E #8E2C31 #318E2C
tetradic
#2C318E #8E2C62 #8E892C #2C8E58
square
#2C318E #8E2C62 #8E892C #2C8E58
split-complementary
#2C318E #8E582C #628E2C
monochromatic
#0F1131 #1E215F #2C318E #3A41BD #656BCF

Accessibility & contrast

On white

10.84
#2C318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2C318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C318E
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C318E#FFFFFF#000000##FFFFFF
##2C318E1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c318e;
/* rgb */ color: rgb(44, 49, 142);
/* oklch */ color: oklch(37.2% 0.151 274.0);
Tailwind
colors: {
  custom: {
    50: '#7369b0',
    500: '#2c318e',
    950: '#000000',
  },
}
SCSS
$custom: #2c318e;
$custom-light: #7369b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c318e",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 236.939,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37248,
    "c": 0.15092,
    "h": 274
  },
  "luminance": 0.04685
}

Semantic roles & 50–950 ramp

primary
#2C318E
secondary
#B6B160
accent
#D54CDC
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2C318E

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

Preview Lab → · Contrast checker → · Palette generator →

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