#2C2F74#2C2F74

#2C2F74 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.6% C 0.116 H 276.6°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#2C2F74
RGBrgb(44, 47, 116)
HSLhsl(238, 45%, 31%)
HSVhsv(238, 62%, 45%)
CMYKcmyk(62.1%, 59.5%, 0%, 54.5%)
CIE-LABlab(23.10, 21.37, -40.25)
CIE-LCHlch(23.10, 45.57, 297.96°)
OKLaboklab(34.56% 0.0133 -0.1155)
OKLCHoklch(34.56% 0.116 276.6)
XYZxyz(5.2066, 3.8291, 16.9843)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F74 #74712C
analogous
#2C5374 #2C2F74 #4D2C74
triadic
#2C2F74 #742C2F #2F742C
tetradic
#2C2F74 #742C53 #74712C #2C744D
square
#2C2F74 #742C53 #74712C #2C744D
split-complementary
#2C2F74 #744D2C #53742C
monochromatic
#0A0B1B #1B1D48 #2C2F74 #3D41A0 #5A5EC0

Accessibility & contrast

On white

11.89
#2C2F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2F74
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F74#FFFFFF#000000##FFFFFF
##2C2F741.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2f74;
/* rgb */ color: rgb(44, 47, 116);
/* oklch */ color: oklch(34.6% 0.116 276.6);
Tailwind
colors: {
  custom: {
    50: '#6d679d',
    500: '#2c2f74',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f74;
$custom-light: #6d679d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f74",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 237.5,
    "s": 45,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34556,
    "c": 0.1163,
    "h": 276.6
  },
  "luminance": 0.03829
}

Semantic roles & 50–950 ramp

primary
#2C2F74
secondary
#A6A256
accent
#CF53D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2C2F74

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

Preview Lab → · Contrast checker → · Palette generator →

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