#2C2F88#2C2F88

#2C2F88 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.145 H 275.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2C2F88
RGBrgb(44, 47, 136)
HSLhsl(238, 51%, 35%)
HSVhsv(238, 68%, 53%)
CMYKcmyk(67.6%, 65.4%, 0%, 46.7%)
CIE-LABlab(24.78, 28.66, -50.14)
CIE-LCHlch(24.78, 57.75, 299.75°)
OKLaboklab(36.33% 0.0126 -0.1446)
OKLCHoklch(36.33% 0.145 275)
XYZxyz(6.4977, 4.3455, 23.7841)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F88 #88852C
analogous
#2C5D88 #2C2F88 #572C88
triadic
#2C2F88 #882C2F #2F882C
tetradic
#2C2F88 #882C5D #88852C #2C8857
square
#2C2F88 #882C5D #88852C #2C8857
split-complementary
#2C2F88 #88572C #5D882C
monochromatic
#0E0F2C #1D1F5A #2C2F88 #3B3FB6 #6266CC

Accessibility & contrast

On white

11.23
#2C2F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2C2F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F88
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F88#FFFFFF#000000##FFFFFF
##2C2F881.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003786
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c2f88;
/* rgb */ color: rgb(44, 47, 136);
/* oklch */ color: oklch(36.3% 0.145 275.0);
Tailwind
colors: {
  custom: {
    50: '#7167ac',
    500: '#2c2f88',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f88;
$custom-light: #7167ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f88",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 238.043,
    "s": 51.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36326,
    "c": 0.14513,
    "h": 275
  },
  "luminance": 0.04346
}

Semantic roles & 50–950 ramp

primary
#2C2F88
secondary
#B3B05D
accent
#D64DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C2F88

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

Preview Lab → · Contrast checker → · Palette generator →

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