#2C2F7F#2C2F7F

#2C2F7F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.132 H 275.7°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2C2F7F
RGBrgb(44, 47, 127)
HSLhsl(238, 49%, 34%)
HSVhsv(238, 65%, 50%)
CMYKcmyk(65.4%, 63%, 0%, 50.2%)
CIE-LABlab(24.00, 25.39, -45.77)
CIE-LCHlch(24.00, 52.34, 299.02°)
OKLaboklab(35.51% 0.0131 -0.1318)
OKLCHoklch(35.51% 0.132 275.7)
XYZxyz(5.8847, 4.1003, 20.5559)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F7F #7F7C2C
analogous
#2C587F #2C2F7F #522C7F
triadic
#2C2F7F #7F2C2F #2F7F2C
tetradic
#2C2F7F #7F2C58 #7F7C2C #2C7F52
square
#2C2F7F #7F2C58 #7F7C2C #2C7F52
split-complementary
#2C2F7F #7F522C #587F2C
monochromatic
#0D0D24 #1C1E52 #2C2F7F #3C40AC #5E62C7

Accessibility & contrast

On white

11.54
#2C2F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2C2F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F7F
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F7F#FFFFFF#000000##FFFFFF
##2C2F7F1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c2f7f;
/* rgb */ color: rgb(44, 47, 127);
/* oklch */ color: oklch(35.5% 0.132 275.7);
Tailwind
colors: {
  custom: {
    50: '#6f67a5',
    500: '#2c2f7f',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f7f;
$custom-light: #6f67a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f7f",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 237.831,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35508,
    "c": 0.13241,
    "h": 275.7
  },
  "luminance": 0.04101
}

Semantic roles & 50–950 ramp

primary
#2C2F7F
secondary
#ADAA59
accent
#D350D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2C2F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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