#2C2F9B#2C2F9B

#2C2F9B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.171 H 273.6°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#2C2F9B
RGBrgb(44, 47, 155)
HSLhsl(238, 56%, 39%)
HSVhsv(238, 72%, 61%)
CMYKcmyk(71.6%, 69.7%, 0%, 39.2%)
CIE-LABlab(26.55, 35.45, -58.97)
CIE-LCHlch(26.55, 68.81, 301.01°)
OKLaboklab(38.15% 0.0107 -0.1704)
OKLCHoklch(38.15% 0.171 273.6)
XYZxyz(7.9696, 4.9343, 31.5364)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F9B #9B982C
analogous
#2C679B #2C2F9B #612C9B
triadic
#2C2F9B #9B2C2F #2F9B2C
tetradic
#2C2F9B #9B2C67 #9B982C #2C9B61
square
#2C2F9B #9B2C67 #9B982C #2C9B61
split-complementary
#2C2F9B #9B612C #679B2C
monochromatic
#11123C #1E216B #2C2F9B #3C40C8 #6C6FD5

Accessibility & contrast

On white

10.57
#2C2F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2C2F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F9B
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F9B#FFFFFF#000000##FFFFFF
##2C2F9B1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2c2f9b;
/* rgb */ color: rgb(44, 47, 155);
/* oklch */ color: oklch(38.1% 0.171 273.6);
Tailwind
colors: {
  custom: {
    50: '#7668ba',
    500: '#2c2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f9b;
$custom-light: #7668ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f9b",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 238.378,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38149,
    "c": 0.17079,
    "h": 273.6
  },
  "luminance": 0.04935
}

Semantic roles & 50–950 ramp

primary
#2C2F9B
secondary
#BCBA67
accent
#DB49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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