#2C2FAF#2C2FAF

#2C2FAF is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.196 H 272.3°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2C2FAF
RGBrgb(44, 47, 175)
HSLhsl(239, 60%, 43%)
HSVhsv(239, 75%, 69%)
CMYKcmyk(74.9%, 73.1%, 0%, 31.4%)
CIE-LABlab(28.54, 42.38, -67.77)
CIE-LCHlch(28.54, 79.93, 302.02°)
OKLaboklab(40.18% 0.0078 -0.1961)
OKLCHoklch(40.18% 0.196 272.3)
XYZxyz(9.7905, 5.6626, 41.1261)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2FAF #AFAC2C
analogous
#2C70AF #2C2FAF #6A2CAF
triadic
#2C2FAF #AF2C2F #2FAF2C
tetradic
#2C2FAF #AF2C70 #AFAC2C #2CAF6A
square
#2C2FAF #AF2C70 #AFAC2C #2CAF6A
split-complementary
#2C2FAF #AF6A2C #70AF2C
monochromatic
#13154D #20227E #2C2FAF #474BD1 #787BDD

Accessibility & contrast

On white

9.85
#2C2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2C2FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2FAF
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2FAF#FFFFFF#000000##FFFFFF
##2C2FAF1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2c2faf;
/* rgb */ color: rgb(44, 47, 175);
/* oklch */ color: oklch(40.2% 0.196 272.3);
Tailwind
colors: {
  custom: {
    50: '#7a69c8',
    500: '#2c2faf',
    950: '#000000',
  },
}
SCSS
$custom: #2c2faf;
$custom-light: #7a69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2faf",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 238.626,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40185,
    "c": 0.19629,
    "h": 272.3
  },
  "luminance": 0.05664
}

Semantic roles & 50–950 ramp

primary
#2C2FAF
secondary
#C5C372
accent
#DF45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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