#2D30A0#2D30A0

#2D30A0 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.176 H 273.5°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#2D30A0
RGBrgb(45, 48, 160)
HSLhsl(238, 56%, 40%)
HSVhsv(238, 72%, 63%)
CMYKcmyk(71.9%, 70%, 0%, 37.3%)
CIE-LABlab(27.32, 36.71, -60.74)
CIE-LCHlch(27.32, 70.97, 301.15°)
OKLaboklab(38.87% 0.0106 -0.1756)
OKLCHoklch(38.87% 0.176 273.5)
XYZxyz(8.4822, 5.2090, 33.8093)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D30A0 #A09D2D
analogous
#2D69A0 #2D30A0 #642DA0
triadic
#2D30A0 #A02D30 #30A02D
tetradic
#2D30A0 #A02D69 #A09D2D #2DA064
square
#2D30A0 #A02D69 #A09D2D #2DA064
split-complementary
#2D30A0 #A0642D #69A02D
monochromatic
#121340 #202270 #2D30A0 #4144C9 #7073D7

Accessibility & contrast

On white

10.28
#2D30A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2D30A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D30A0
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D30A0#FFFFFF#000000##FFFFFF
##2D30A01.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d30a0;
/* rgb */ color: rgb(45, 48, 160);
/* oklch */ color: oklch(38.9% 0.176 273.5);
Tailwind
colors: {
  custom: {
    50: '#7769bd',
    500: '#2d30a0',
    950: '#000000',
  },
}
SCSS
$custom: #2d30a0;
$custom-light: #7769bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d30a0",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 160
  },
  "hsl": {
    "h": 238.435,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38873,
    "c": 0.17592,
    "h": 273.5
  },
  "luminance": 0.0521
}

Semantic roles & 50–950 ramp

primary
#2D30A0
secondary
#BEBC6B
accent
#DB48DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D30A0

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

Preview Lab → · Contrast checker → · Palette generator →

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