#2C2F8A#2C2F8A

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

Color values

HEX#2C2F8A
RGBrgb(44, 47, 138)
HSLhsl(238, 52%, 36%)
HSVhsv(238, 68%, 54%)
CMYKcmyk(68.1%, 65.9%, 0%, 45.9%)
CIE-LABlab(24.96, 29.38, -51.09)
CIE-LCHlch(24.96, 58.94, 299.90°)
OKLaboklab(36.51% 0.0125 -0.1474)
OKLCHoklch(36.51% 0.148 274.8)
XYZxyz(6.6412, 4.4029, 24.5397)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F8A #8A872C
analogous
#2C5E8A #2C2F8A #582C8A
triadic
#2C2F8A #8A2C2F #2F8A2C
tetradic
#2C2F8A #8A2C5E #8A872C #2C8A58
square
#2C2F8A #8A2C5E #8A872C #2C8A58
split-complementary
#2C2F8A #8A582C #5E8A2C
monochromatic
#0E0F2D #1D1F5C #2C2F8A #3B3FB8 #6366CD

Accessibility & contrast

On white

11.17
#2C2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2C2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F8A
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F8A#FFFFFF#000000##FFFFFF
##2C2F8A1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c2f8a;
/* rgb */ color: rgb(44, 47, 138);
/* oklch */ color: oklch(36.5% 0.148 274.8);
Tailwind
colors: {
  custom: {
    50: '#7268ad',
    500: '#2c2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f8a;
$custom-light: #7268ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f8a",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 238.085,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36512,
    "c": 0.14791,
    "h": 274.8
  },
  "luminance": 0.04403
}

Semantic roles & 50–950 ramp

primary
#2C2F8A
secondary
#B4B15E
accent
#D74DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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