#2C2F75#2C2F75

#2C2F75 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.118 H 276.5°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2C2F75
RGBrgb(44, 47, 117)
HSLhsl(238, 45%, 32%)
HSVhsv(238, 62%, 46%)
CMYKcmyk(62.4%, 59.8%, 0%, 54.1%)
CIE-LABlab(23.18, 21.73, -40.76)
CIE-LCHlch(23.18, 46.19, 298.06°)
OKLaboklab(34.64% 0.0133 -0.117)
OKLCHoklch(34.64% 0.118 276.5)
XYZxyz(5.2651, 3.8525, 17.2923)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F75 #75722C
analogous
#2C5475 #2C2F75 #4E2C75
triadic
#2C2F75 #752C2F #2F752C
tetradic
#2C2F75 #752C54 #75722C #2C754E
square
#2C2F75 #752C54 #75722C #2C754E
split-complementary
#2C2F75 #754E2C #54752C
monochromatic
#0B0B1C #1B1D49 #2C2F75 #3D41A1 #5A5FC1

Accessibility & contrast

On white

11.86
#2C2F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2C2F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F75
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F75#FFFFFF#000000##FFFFFF
##2C2F751.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A77
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2f75;
/* rgb */ color: rgb(44, 47, 117);
/* oklch */ color: oklch(34.6% 0.118 276.5);
Tailwind
colors: {
  custom: {
    50: '#6d679d',
    500: '#2c2f75',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f75;
$custom-light: #6d679d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f75",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 117
  },
  "hsl": {
    "h": 237.534,
    "s": 45.342,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34641,
    "c": 0.11779,
    "h": 276.5
  },
  "luminance": 0.03853
}

Semantic roles & 50–950 ramp

primary
#2C2F75
secondary
#A7A356
accent
#D053D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2C2F75

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

Preview Lab → · Contrast checker → · Palette generator →

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