#2C30B2#2C30B2

#2C30B2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.6% C 0.199 H 272.0°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#2C30B2
RGBrgb(44, 48, 178)
HSLhsl(238, 60%, 44%)
HSVhsv(238, 75%, 70%)
CMYKcmyk(75.3%, 73%, 0%, 30.2%)
CIE-LABlab(29.06, 42.81, -68.71)
CIE-LCHlch(29.06, 80.95, 301.93°)
OKLaboklab(40.65% 0.0069 -0.1989)
OKLCHoklch(40.65% 0.199 272)
XYZxyz(10.1288, 5.8627, 42.7086)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C30B2 #B2AE2C
analogous
#2C73B2 #2C30B2 #6B2CB2
triadic
#2C30B2 #B22C30 #30B22C
tetradic
#2C30B2 #B22C73 #B2AE2C #2CB26B
square
#2C30B2 #B22C73 #B2AE2C #2CB26B
split-complementary
#2C30B2 #B26B2C #73B22C
monochromatic
#141650 #202381 #2C30B2 #494DD2 #7A7DDE

Accessibility & contrast

On white

9.66
#2C30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C30B2
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C30B2#FFFFFF#000000##FFFFFF
##2C30B21.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c30b2;
/* rgb */ color: rgb(44, 48, 178);
/* oklch */ color: oklch(40.6% 0.199 272.0);
Tailwind
colors: {
  custom: {
    50: '#7b6aca',
    500: '#2c30b2',
    950: '#000000',
  },
}
SCSS
$custom: #2c30b2;
$custom-light: #7b6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c30b2",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 238.209,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40647,
    "c": 0.19898,
    "h": 272
  },
  "luminance": 0.05864
}

Semantic roles & 50–950 ramp

primary
#2C30B2
secondary
#C6C473
accent
#DF44E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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