#2C2897#2C2897

#2C2897 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.173 H 275.2°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2C2897
RGBrgb(44, 40, 151)
HSLhsl(242, 58%, 37%)
HSVhsv(242, 74%, 59%)
CMYKcmyk(70.9%, 73.5%, 0%, 40.8%)
CIE-LABlab(24.60, 38.34, -59.73)
CIE-LCHlch(24.60, 70.97, 302.69°)
OKLaboklab(36.63% 0.0157 -0.1726)
OKLCHoklch(36.63% 0.173 275.2)
XYZxyz(7.3816, 4.2867, 29.7106)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2897 #939728
analogous
#285C97 #2C2897 #632897
triadic
#2C2897 #972C28 #28972C
tetradic
#2C2897 #97285C #939728 #289763
square
#2C2897 #97285C #939728 #289763
split-complementary
#2C2897 #976328 #5C9728
monochromatic
#100E36 #1E1B67 #2C2897 #3A35C7 #6864D6

Accessibility & contrast

On white

11.31
#2C2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2C2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2897
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2897#FFFFFF#000000##FFFFFF
##2C28971.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c2897;
/* rgb */ color: rgb(44, 40, 151);
/* oklch */ color: oklch(36.6% 0.173 275.2);
Tailwind
colors: {
  custom: {
    50: '#7563b7',
    500: '#2c2897',
    950: '#000000',
  },
}
SCSS
$custom: #2c2897;
$custom-light: #7563b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2897",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 242.162,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3663,
    "c": 0.17336,
    "h": 275.2
  },
  "luminance": 0.04287
}

Semantic roles & 50–950 ramp

primary
#2C2897
secondary
#B8BC5F
accent
#E146DC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2C2897

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

Preview Lab → · Contrast checker → · Palette generator →

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