#2D30A5#2D30A5

#2D30A5 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.182 H 273.1°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2D30A5
RGBrgb(45, 48, 165)
HSLhsl(239, 57%, 41%)
HSVhsv(239, 73%, 65%)
CMYKcmyk(72.7%, 70.9%, 0%, 35.3%)
CIE-LABlab(27.81, 38.45, -62.96)
CIE-LCHlch(27.81, 73.77, 301.41°)
OKLaboklab(39.37% 0.0099 -0.1821)
OKLCHoklch(39.37% 0.182 273.1)
XYZxyz(8.9284, 5.3875, 36.1594)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D30A5 #A5A22D
analogous
#2D6CA5 #2D30A5 #662DA5
triadic
#2D30A5 #A52D30 #30A52D
tetradic
#2D30A5 #A52D6C #A5A22D #2DA566
square
#2D30A5 #A52D6C #A5A22D #2DA566
split-complementary
#2D30A5 #A5662D #6CA52D
monochromatic
#131445 #202275 #2D30A5 #4347CC #7376D9

Accessibility & contrast

On white

10.11
#2D30A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2D30A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D30A5
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D30A5#FFFFFF#000000##FFFFFF
##2D30A51.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d30a5;
/* rgb */ color: rgb(45, 48, 165);
/* oklch */ color: oklch(39.4% 0.182 273.1);
Tailwind
colors: {
  custom: {
    50: '#7869c1',
    500: '#2d30a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d30a5;
$custom-light: #7869c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d30a5",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 238.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39373,
    "c": 0.18236,
    "h": 273.1
  },
  "luminance": 0.05388
}

Semantic roles & 50–950 ramp

primary
#2D30A5
secondary
#C1BE6D
accent
#DD47E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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