#2C30AB#2C30AB

#2C30AB is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.190 H 272.4°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#2C30AB
RGBrgb(44, 48, 171)
HSLhsl(238, 59%, 42%)
HSVhsv(238, 74%, 67%)
CMYKcmyk(74.3%, 71.9%, 0%, 32.9%)
CIE-LABlab(28.35, 40.42, -65.69)
CIE-LCHlch(28.35, 77.13, 301.60°)
OKLaboklab(39.92% 0.0079 -0.1901)
OKLCHoklch(39.92% 0.19 272.4)
XYZxyz(9.4439, 5.5887, 39.1012)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C30AB #ABA72C
analogous
#2C70AB #2C30AB #672CAB
triadic
#2C30AB #AB2C30 #30AB2C
tetradic
#2C30AB #AB2C70 #ABA72C #2CAB67
square
#2C30AB #AB2C70 #ABA72C #2CAB67
split-complementary
#2C30AB #AB672C #70AB2C
monochromatic
#13154A #1F227A #2C30AB #4549CF #7679DC

Accessibility & contrast

On white

9.92
#2C30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2C30AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C30AB
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C30AB#FFFFFF#000000##FFFFFF
##2C30AB1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2c30ab;
/* rgb */ color: rgb(44, 48, 171);
/* oklch */ color: oklch(39.9% 0.190 272.4);
Tailwind
colors: {
  custom: {
    50: '#7969c5',
    500: '#2c30ab',
    950: '#000000',
  },
}
SCSS
$custom: #2c30ab;
$custom-light: #7969c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c30ab",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 238.11,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39924,
    "c": 0.19024,
    "h": 272.4
  },
  "luminance": 0.0559
}

Semantic roles & 50–950 ramp

primary
#2C30AB
secondary
#C3C16F
accent
#DD46E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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