#2C30B7#2C30B7

#2C30B7 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.2% C 0.205 H 271.7°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#2C30B7
RGBrgb(44, 48, 183)
HSLhsl(238, 61%, 45%)
HSVhsv(238, 76%, 72%)
CMYKcmyk(76%, 73.8%, 0%, 28.2%)
CIE-LABlab(29.58, 44.50, -70.83)
CIE-LCHlch(29.58, 83.65, 302.14°)
OKLaboklab(41.17% 0.0061 -0.205)
OKLCHoklch(41.17% 0.205 271.7)
XYZxyz(10.6400, 6.0671, 45.4009)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C30B7 #B7B32C
analogous
#2C76B7 #2C30B7 #6D2CB7
triadic
#2C30B7 #B72C30 #30B72C
tetradic
#2C30B7 #B72C76 #B7B32C #2CB76D
square
#2C30B7 #B72C76 #B7B32C #2CB76D
split-complementary
#2C30B7 #B76D2C #76B72C
monochromatic
#141654 #202386 #2C30B7 #4C50D4 #7E80E0

Accessibility & contrast

On white

9.49
#2C30B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2C30B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C30B7
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C30B7#FFFFFF#000000##FFFFFF
##2C30B71.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#003FB5
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c30b7;
/* rgb */ color: rgb(44, 48, 183);
/* oklch */ color: oklch(41.2% 0.205 271.7);
Tailwind
colors: {
  custom: {
    50: '#7c6ace',
    500: '#2c30b7',
    950: '#000000',
  },
}
SCSS
$custom: #2c30b7;
$custom-light: #7c6ace;
$custom-dark: #000000;
JSON
{
  "hex": "#2c30b7",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 238.273,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41171,
    "c": 0.20512,
    "h": 271.7
  },
  "luminance": 0.06068
}

Semantic roles & 50–950 ramp

primary
#2C30B7
secondary
#C8C676
accent
#E043E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2C30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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