#2C30A5#2C30A5

#2C30A5 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.183 H 272.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2C30A5
RGBrgb(44, 48, 165)
HSLhsl(238, 58%, 41%)
HSVhsv(238, 73%, 65%)
CMYKcmyk(73.3%, 70.9%, 0%, 35.3%)
CIE-LABlab(27.75, 38.34, -63.07)
CIE-LCHlch(27.75, 73.81, 301.30°)
OKLaboklab(39.31% 0.0088 -0.1824)
OKLCHoklch(39.31% 0.183 272.8)
XYZxyz(8.8849, 5.3651, 36.1573)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C30A5 #A5A12C
analogous
#2C6CA5 #2C30A5 #642CA5
triadic
#2C30A5 #A52C30 #30A52C
tetradic
#2C30A5 #A52C6C #A5A12C #2CA564
square
#2C30A5 #A52C6C #A5A12C #2CA564
split-complementary
#2C30A5 #A5642C #6CA52C
monochromatic
#121444 #1F2275 #2C30A5 #4246CD #7275D9

Accessibility & contrast

On white

10.13
#2C30A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2C30A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C30A5
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C30A5#FFFFFF#000000##FFFFFF
##2C30A51.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c30a5;
/* rgb */ color: rgb(44, 48, 165);
/* oklch */ color: oklch(39.3% 0.183 272.8);
Tailwind
colors: {
  custom: {
    50: '#7869c1',
    500: '#2c30a5',
    950: '#000000',
  },
}
SCSS
$custom: #2c30a5;
$custom-light: #7869c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c30a5",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 238.017,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39313,
    "c": 0.18262,
    "h": 272.8
  },
  "luminance": 0.05366
}

Semantic roles & 50–950 ramp

primary
#2C30A5
secondary
#C1BE6C
accent
#DC47E1
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2C30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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