#2D30B2#2D30B2

#2D30B2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.199 H 272.3°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#2D30B2
RGBrgb(45, 48, 178)
HSLhsl(239, 60%, 44%)
HSVhsv(239, 75%, 70%)
CMYKcmyk(74.7%, 73%, 0%, 30.2%)
CIE-LABlab(29.12, 42.90, -68.61)
CIE-LCHlch(29.12, 80.92, 302.02°)
OKLaboklab(40.7% 0.008 -0.1986)
OKLCHoklch(40.7% 0.199 272.3)
XYZxyz(10.1723, 5.8851, 42.7107)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D30B2 #B2AF2D
analogous
#2D72B2 #2D30B2 #6C2DB2
triadic
#2D30B2 #B22D30 #30B22D
tetradic
#2D30B2 #B22D72 #B2AF2D #2DB26C
square
#2D30B2 #B22D72 #B2AF2D #2DB26C
split-complementary
#2D30B2 #B26C2D #72B22D
monochromatic
#141650 #212381 #2D30B2 #4B4ED1 #7C7EDE

Accessibility & contrast

On white

9.65
#2D30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2D30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D30B2
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D30B2#FFFFFF#000000##FFFFFF
##2D30B21.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d30b2;
/* rgb */ color: rgb(45, 48, 178);
/* oklch */ color: oklch(40.7% 0.199 272.3);
Tailwind
colors: {
  custom: {
    50: '#7b6aca',
    500: '#2d30b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d30b2;
$custom-light: #7b6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d30b2",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 238.647,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40704,
    "c": 0.19872,
    "h": 272.3
  },
  "luminance": 0.05886
}

Semantic roles & 50–950 ramp

primary
#2D30B2
secondary
#C6C475
accent
#DF45E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2D30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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