#2C30B8#2C30B8

#2C30B8 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.3% C 0.206 H 271.6°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2C30B8
RGBrgb(44, 48, 184)
HSLhsl(238, 61%, 45%)
HSVhsv(238, 76%, 72%)
CMYKcmyk(76.1%, 73.9%, 0%, 27.8%)
CIE-LABlab(29.69, 44.84, -71.25)
CIE-LCHlch(29.69, 84.18, 302.18°)
OKLaboklab(41.28% 0.0059 -0.2063)
OKLCHoklch(41.28% 0.206 271.6)
XYZxyz(10.7445, 6.1089, 45.9510)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C30B8 #B8B42C
analogous
#2C76B8 #2C30B8 #6E2CB8
triadic
#2C30B8 #B82C30 #30B82C
tetradic
#2C30B8 #B82C76 #B8B42C #2CB86E
square
#2C30B8 #B82C76 #B8B42C #2CB86E
split-complementary
#2C30B8 #B86E2C #76B82C
monochromatic
#141655 #202387 #2C30B8 #4D51D4 #7E81E0

Accessibility & contrast

On white

9.45
#2C30B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2C30B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C30B8
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C30B8#FFFFFF#000000##FFFFFF
##2C30B81.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c30b8;
/* rgb */ color: rgb(44, 48, 184);
/* oklch */ color: oklch(41.3% 0.206 271.6);
Tailwind
colors: {
  custom: {
    50: '#7d6acf',
    500: '#2c30b8',
    950: '#000000',
  },
}
SCSS
$custom: #2c30b8;
$custom-light: #7d6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c30b8",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 238.286,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41276,
    "c": 0.20634,
    "h": 271.6
  },
  "luminance": 0.0611
}

Semantic roles & 50–950 ramp

primary
#2C30B8
secondary
#C9C677
accent
#E043E5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2C30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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