#2F2C7A#2F2C7A

#2F2C7A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.129 H 279.0°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#2F2C7A
RGBrgb(47, 44, 122)
HSLhsl(242, 47%, 33%)
HSVhsv(242, 64%, 48%)
CMYKcmyk(61.5%, 63.9%, 0%, 52.2%)
CIE-LABlab(23.03, 26.13, -44.17)
CIE-LCHlch(23.03, 51.32, 300.61°)
OKLaboklab(34.73% 0.0202 -0.127)
OKLCHoklch(34.73% 0.129 279)
XYZxyz(5.5847, 3.8104, 18.8498)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C7A #777A2C
analogous
#2C507A #2F2C7A #562C7A
triadic
#2F2C7A #7A2F2C #2C7A2F
tetradic
#2F2C7A #7A2C50 #777A2C #2C7A56
square
#2F2C7A #7A2C50 #777A2C #2C7A56
split-complementary
#2F2C7A #7A562C #507A2C
monochromatic
#0C0C20 #1E1C4D #2F2C7A #403CA7 #605CC4

Accessibility & contrast

On white

11.92
#2F2C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F2C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C7A
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C7A#FFFFFF#000000##FFFFFF
##2F2C7A1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2c7a;
/* rgb */ color: rgb(47, 44, 122);
/* oklch */ color: oklch(34.7% 0.129 279.0);
Tailwind
colors: {
  custom: {
    50: '#7065a1',
    500: '#2f2c7a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c7a;
$custom-light: #7065a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c7a",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 242.308,
    "s": 46.988,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34725,
    "c": 0.12858,
    "h": 279
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#2F2C7A
secondary
#A7AA57
accent
#D751D1
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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