#2C3397#2C3397

#2C3397 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.161 H 273.0°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#2C3397
RGBrgb(44, 51, 151)
HSLhsl(236, 55%, 38%)
HSVhsv(236, 71%, 59%)
CMYKcmyk(70.9%, 66.2%, 0%, 40.8%)
CIE-LABlab(27.12, 31.48, -55.58)
CIE-LCHlch(27.12, 63.88, 299.52°)
OKLaboklab(38.45% 0.0084 -0.1605)
OKLCHoklch(38.45% 0.161 273)
XYZxyz(7.8066, 5.1367, 29.8522)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3397 #97902C
analogous
#2C6897 #2C3397 #5A2C97
triadic
#2C3397 #972C33 #33972C
tetradic
#2C3397 #972C68 #97902C #2C975A
square
#2C3397 #972C68 #97902C #2C975A
split-complementary
#2C3397 #975A2C #68972C
monochromatic
#101338 #1E2368 #2C3397 #3A44C6 #6A71D4

Accessibility & contrast

On white

10.36
#2C3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2C3397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3397
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3397#FFFFFF#000000##FFFFFF
##2C33971.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c3397;
/* rgb */ color: rgb(44, 51, 151);
/* oklch */ color: oklch(38.5% 0.161 273.0);
Tailwind
colors: {
  custom: {
    50: '#746bb7',
    500: '#2c3397',
    950: '#000000',
  },
}
SCSS
$custom: #2c3397;
$custom-light: #746bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3397",
  "rgb": {
    "r": 44,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 236.075,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38451,
    "c": 0.16074,
    "h": 273
  },
  "luminance": 0.05137
}

Semantic roles & 50–950 ramp

primary
#2C3397
secondary
#BAB565
accent
#D44ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2C3397

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

Preview Lab → · Contrast checker → · Palette generator →

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