#2C2F97#2C2F97

#2C2F97 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.166 H 273.9°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2C2F97
RGBrgb(44, 47, 151)
HSLhsl(238, 55%, 38%)
HSVhsv(238, 71%, 59%)
CMYKcmyk(70.9%, 68.9%, 0%, 40.8%)
CIE-LABlab(26.16, 34.04, -57.15)
CIE-LCHlch(26.16, 66.52, 300.78°)
OKLaboklab(37.76% 0.0112 -0.1651)
OKLCHoklch(37.76% 0.166 273.9)
XYZxyz(7.6393, 4.8021, 29.7965)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F97 #97942C
analogous
#2C6497 #2C2F97 #5E2C97
triadic
#2C2F97 #972C2F #2F972C
tetradic
#2C2F97 #972C64 #97942C #2C975E
square
#2C2F97 #972C64 #97942C #2C975E
split-complementary
#2C2F97 #975E2C #64972C
monochromatic
#101138 #1E2068 #2C2F97 #3A3EC6 #6A6DD4

Accessibility & contrast

On white

10.71
#2C2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2C2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F97
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F97#FFFFFF#000000##FFFFFF
##2C2F971.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c2f97;
/* rgb */ color: rgb(44, 47, 151);
/* oklch */ color: oklch(37.8% 0.166 273.9);
Tailwind
colors: {
  custom: {
    50: '#7568b7',
    500: '#2c2f97',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f97;
$custom-light: #7568b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f97",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 238.318,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37755,
    "c": 0.16551,
    "h": 273.9
  },
  "luminance": 0.04803
}

Semantic roles & 50–950 ramp

primary
#2C2F97
secondary
#BAB865
accent
#DA4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2C2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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