#2C2F8F#2C2F8F

#2C2F8F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.155 H 274.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2C2F8F
RGBrgb(44, 47, 143)
HSLhsl(238, 53%, 37%)
HSVhsv(238, 69%, 56%)
CMYKcmyk(69.2%, 67.1%, 0%, 43.9%)
CIE-LABlab(25.42, 31.18, -53.45)
CIE-LCHlch(25.42, 61.88, 300.26°)
OKLaboklab(36.98% 0.0121 -0.1543)
OKLCHoklch(36.98% 0.155 274.5)
XYZxyz(7.0115, 4.5510, 26.4902)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F8F #8F8C2C
analogous
#2C618F #2C2F8F #5B2C8F
triadic
#2C2F8F #8F2C2F #2F8F2C
tetradic
#2C2F8F #8F2C61 #8F8C2C #2C8F5B
square
#2C2F8F #8F2C61 #8F8C2C #2C8F5B
split-complementary
#2C2F8F #8F5B2C #618F2C
monochromatic
#0F1031 #1E2060 #2C2F8F #3A3EBE #6669D0

Accessibility & contrast

On white

10.99
#2C2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2C2F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F8F
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F8F#FFFFFF#000000##FFFFFF
##2C2F8F1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c2f8f;
/* rgb */ color: rgb(44, 47, 143);
/* oklch */ color: oklch(37.0% 0.155 274.5);
Tailwind
colors: {
  custom: {
    50: '#7368b1',
    500: '#2c2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f8f;
$custom-light: #7368b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f8f",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 238.182,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36983,
    "c": 0.15477,
    "h": 274.5
  },
  "luminance": 0.04552
}

Semantic roles & 50–950 ramp

primary
#2C2F8F
secondary
#B6B461
accent
#D84BDC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2C2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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