#2C2F9A#2C2F9A

#2C2F9A is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.169 H 273.7°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#2C2F9A
RGBrgb(44, 47, 154)
HSLhsl(238, 56%, 39%)
HSVhsv(238, 71%, 60%)
CMYKcmyk(71.4%, 69.5%, 0%, 39.6%)
CIE-LABlab(26.45, 35.10, -58.52)
CIE-LCHlch(26.45, 68.24, 300.96°)
OKLaboklab(38.05% 0.0108 -0.1691)
OKLCHoklch(38.05% 0.169 273.7)
XYZxyz(7.8860, 4.9008, 31.0959)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F9A #9A972C
analogous
#2C669A #2C2F9A #602C9A
triadic
#2C2F9A #9A2C2F #2F9A2C
tetradic
#2C2F9A #9A2C66 #9A972C #2C9A60
square
#2C2F9A #9A2C66 #9A972C #2C9A60
split-complementary
#2C2F9A #9A602C #669A2C
monochromatic
#11123B #1E206A #2C2F9A #3C40C7 #6C6ED5

Accessibility & contrast

On white

10.60
#2C2F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2C2F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F9A
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F9A#FFFFFF#000000##FFFFFF
##2C2F9A1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2c2f9a;
/* rgb */ color: rgb(44, 47, 154);
/* oklch */ color: oklch(38.0% 0.169 273.7);
Tailwind
colors: {
  custom: {
    50: '#7568b9',
    500: '#2c2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f9a;
$custom-light: #7568b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f9a",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 238.364,
    "s": 55.556,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3805,
    "c": 0.16948,
    "h": 273.7
  },
  "luminance": 0.04902
}

Semantic roles & 50–950 ramp

primary
#2C2F9A
secondary
#BCB966
accent
#DB49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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