#2D30AB#2D30AB

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

Color values

HEX#2D30AB
RGBrgb(45, 48, 171)
HSLhsl(239, 58%, 42%)
HSVhsv(239, 74%, 67%)
CMYKcmyk(73.7%, 71.9%, 0%, 32.9%)
CIE-LABlab(28.41, 40.52, -65.59)
CIE-LCHlch(28.41, 77.10, 301.70°)
OKLaboklab(39.98% 0.0091 -0.1898)
OKLCHoklch(39.98% 0.19 272.7)
XYZxyz(9.4874, 5.6111, 39.1032)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D30AB #ABA82D
analogous
#2D6FAB #2D30AB #692DAB
triadic
#2D30AB #AB2D30 #30AB2D
tetradic
#2D30AB #AB2D6F #ABA82D #2DAB69
square
#2D30AB #AB2D6F #ABA82D #2DAB69
split-complementary
#2D30AB #AB692D #6FAB2D
monochromatic
#14154A #20227B #2D30AB #474ACE #777ADB

Accessibility & contrast

On white

9.89
#2D30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D30AB
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D30AB#FFFFFF#000000##FFFFFF
##2D30AB1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.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: #2d30ab;
/* rgb */ color: rgb(45, 48, 171);
/* oklch */ color: oklch(40.0% 0.190 272.7);
Tailwind
colors: {
  custom: {
    50: '#7a69c5',
    500: '#2d30ab',
    950: '#000000',
  },
}
SCSS
$custom: #2d30ab;
$custom-light: #7a69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d30ab",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 238.571,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39982,
    "c": 0.18998,
    "h": 272.7
  },
  "luminance": 0.05612
}

Semantic roles & 50–950 ramp

primary
#2D30AB
secondary
#C3C171
accent
#DE46E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2D30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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