#2C2F95#2C2F95

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

Color values

HEX#2C2F95
RGBrgb(44, 47, 149)
HSLhsl(238, 54%, 38%)
HSVhsv(238, 70%, 58%)
CMYKcmyk(70.5%, 68.5%, 0%, 41.6%)
CIE-LABlab(25.97, 33.33, -56.23)
CIE-LCHlch(25.97, 65.37, 300.65°)
OKLaboklab(37.56% 0.0114 -0.1624)
OKLCHoklch(37.56% 0.163 274)
XYZxyz(7.4782, 4.7377, 28.9483)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F95 #95922C
analogous
#2C6395 #2C2F95 #5E2C95
triadic
#2C2F95 #952C2F #2F952C
tetradic
#2C2F95 #952C63 #95922C #2C955E
square
#2C2F95 #952C63 #95922C #2C955E
split-complementary
#2C2F95 #955E2C #63952C
monochromatic
#101137 #1E2066 #2C2F95 #3A3EC4 #696CD3

Accessibility & contrast

On white

10.78
#2C2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2C2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F95
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F95#FFFFFF#000000##FFFFFF
##2C2F951.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003993
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c2f95;
/* rgb */ color: rgb(44, 47, 149);
/* oklch */ color: oklch(37.6% 0.163 274.0);
Tailwind
colors: {
  custom: {
    50: '#7468b5',
    500: '#2c2f95',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f95;
$custom-light: #7468b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f95",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 238.286,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3756,
    "c": 0.16285,
    "h": 274
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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