#2C30AF#2C30AF

#2C30AF is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.195 H 272.1°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2C30AF
RGBrgb(44, 48, 175)
HSLhsl(238, 60%, 43%)
HSVhsv(238, 75%, 69%)
CMYKcmyk(74.9%, 72.6%, 0%, 31.4%)
CIE-LABlab(28.76, 41.79, -67.42)
CIE-LCHlch(28.76, 79.32, 301.79°)
OKLaboklab(40.34% 0.0073 -0.1951)
OKLCHoklch(40.34% 0.195 272.1)
XYZxyz(9.8309, 5.7435, 41.1396)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C30AF #AFAB2C
analogous
#2C71AF #2C30AF #692CAF
triadic
#2C30AF #AF2C30 #30AF2C
tetradic
#2C30AF #AF2C71 #AFAB2C #2CAF69
square
#2C30AF #AF2C71 #AFAB2C #2CAF69
split-complementary
#2C30AF #AF692C #71AF2C
monochromatic
#13154D #20237E #2C30AF #474CD1 #787BDD

Accessibility & contrast

On white

9.77
#2C30AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2C30AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C30AF
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C30AF#FFFFFF#000000##FFFFFF
##2C30AF1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c30af;
/* rgb */ color: rgb(44, 48, 175);
/* oklch */ color: oklch(40.3% 0.195 272.1);
Tailwind
colors: {
  custom: {
    50: '#7a69c8',
    500: '#2c30af',
    950: '#000000',
  },
}
SCSS
$custom: #2c30af;
$custom-light: #7a69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c30af",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 175
  },
  "hsl": {
    "h": 238.168,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40336,
    "c": 0.19526,
    "h": 272.1
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

primary
#2C30AF
secondary
#C5C372
accent
#DE45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C30AF

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

Preview Lab → · Contrast checker → · Palette generator →

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