#2C2F8B#2C2F8B

#2C2F8B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.149 H 274.8°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#2C2F8B
RGBrgb(44, 47, 139)
HSLhsl(238, 52%, 36%)
HSVhsv(238, 68%, 55%)
CMYKcmyk(68.3%, 66.2%, 0%, 45.5%)
CIE-LABlab(25.05, 29.74, -51.56)
CIE-LCHlch(25.05, 59.53, 299.98°)
OKLaboklab(36.6% 0.0124 -0.1488)
OKLCHoklch(36.6% 0.149 274.8)
XYZxyz(6.7139, 4.4320, 24.9227)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F8B #8B882C
analogous
#2C5E8B #2C2F8B #582C8B
triadic
#2C2F8B #8B2C2F #2F8B2C
tetradic
#2C2F8B #8B2C5E #8B882C #2C8B58
square
#2C2F8B #8B2C5E #8B882C #2C8B58
split-complementary
#2C2F8B #8B582C #5E8B2C
monochromatic
#0F102E #1D1F5D #2C2F8B #3B3FB9 #6467CE

Accessibility & contrast

On white

11.13
#2C2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2C2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F8B
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F8B#FFFFFF#000000##FFFFFF
##2C2F8B1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c2f8b;
/* rgb */ color: rgb(44, 47, 139);
/* oklch */ color: oklch(36.6% 0.149 274.8);
Tailwind
colors: {
  custom: {
    50: '#7268ae',
    500: '#2c2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f8b;
$custom-light: #7268ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f8b",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 238.105,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36605,
    "c": 0.14929,
    "h": 274.8
  },
  "luminance": 0.04433
}

Semantic roles & 50–950 ramp

primary
#2C2F8B
secondary
#B4B15F
accent
#D74CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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