#2C2F9D#2C2F9D

#2C2F9D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.173 H 273.5°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#2C2F9D
RGBrgb(44, 47, 157)
HSLhsl(238, 56%, 39%)
HSVhsv(238, 72%, 62%)
CMYKcmyk(72%, 70.1%, 0%, 38.4%)
CIE-LABlab(26.74, 36.16, -59.87)
CIE-LCHlch(26.74, 69.94, 301.13°)
OKLaboklab(38.35% 0.0104 -0.1731)
OKLCHoklch(38.35% 0.173 273.5)
XYZxyz(8.1390, 5.0020, 32.4283)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F9D #9D9A2C
analogous
#2C689D #2C2F9D #622C9D
triadic
#2C2F9D #9D2C2F #2F9D2C
tetradic
#2C2F9D #9D2C68 #9D9A2C #2C9D62
square
#2C2F9D #9D2C68 #9D9A2C #2C9D62
split-complementary
#2C2F9D #9D622C #689D2C
monochromatic
#11123D #1F216D #2C2F9D #3D41C9 #6D70D6

Accessibility & contrast

On white

10.50
#2C2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2C2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F9D
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F9D#FFFFFF#000000##FFFFFF
##2C2F9D1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2c2f9d;
/* rgb */ color: rgb(44, 47, 157);
/* oklch */ color: oklch(38.3% 0.173 273.5);
Tailwind
colors: {
  custom: {
    50: '#7668bb',
    500: '#2c2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f9d;
$custom-light: #7668bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f9d",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 238.407,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38348,
    "c": 0.17341,
    "h": 273.5
  },
  "luminance": 0.05003
}

Semantic roles & 50–950 ramp

primary
#2C2F9D
secondary
#BDBB68
accent
#DB48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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