#2C31AF#2C31AF

#2C31AF is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.194 H 272.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2C31AF
RGBrgb(44, 49, 175)
HSLhsl(238, 60%, 43%)
HSVhsv(238, 75%, 69%)
CMYKcmyk(74.9%, 72%, 0%, 31.4%)
CIE-LABlab(28.97, 41.20, -67.07)
CIE-LCHlch(28.97, 78.71, 301.56°)
OKLaboklab(40.49% 0.0068 -0.1941)
OKLCHoklch(40.49% 0.194 272)
XYZxyz(9.8723, 5.8262, 41.1534)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C31AF #AFAA2C
analogous
#2C72AF #2C31AF #682CAF
triadic
#2C31AF #AF2C31 #31AF2C
tetradic
#2C31AF #AF2C72 #AFAA2C #2CAF68
square
#2C31AF #AF2C72 #AFAA2C #2CAF68
split-complementary
#2C31AF #AF682C #72AF2C
monochromatic
#13164D #20237E #2C31AF #474DD1 #787CDD

Accessibility & contrast

On white

9.70
#2C31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2C31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C31AF
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C31AF#FFFFFF#000000##FFFFFF
##2C31AF1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#00556D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c31af;
/* rgb */ color: rgb(44, 49, 175);
/* oklch */ color: oklch(40.5% 0.194 272.0);
Tailwind
colors: {
  custom: {
    50: '#7a6ac8',
    500: '#2c31af',
    950: '#000000',
  },
}
SCSS
$custom: #2c31af;
$custom-light: #7a6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c31af",
  "rgb": {
    "r": 44,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 237.71,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40489,
    "c": 0.19421,
    "h": 272
  },
  "luminance": 0.05827
}

Semantic roles & 50–950 ramp

primary
#2C31AF
secondary
#C5C272
accent
#DD45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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