#2B30B2#2B30B2

#2B30B2 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.6% C 0.199 H 271.7°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2B30B2
RGBrgb(43, 48, 178)
HSLhsl(238, 61%, 43%)
HSVhsv(238, 76%, 70%)
CMYKcmyk(75.8%, 73%, 0%, 30.2%)
CIE-LABlab(29.01, 42.72, -68.80)
CIE-LCHlch(29.01, 80.99, 301.84°)
OKLaboklab(40.59% 0.0057 -0.1992)
OKLCHoklch(40.59% 0.199 271.7)
XYZxyz(10.0864, 5.8408, 42.7067)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B30B2 #B2AD2B
analogous
#2B73B2 #2B30B2 #692BB2
triadic
#2B30B2 #B22B30 #30B22B
tetradic
#2B30B2 #B22B73 #B2AD2B #2BB269
square
#2B30B2 #B22B73 #B2AD2B #2BB269
split-complementary
#2B30B2 #B2692B #73B22B
monochromatic
#13154F #1F2381 #2B30B2 #484DD3 #797DDF

Accessibility & contrast

On white

9.68
#2B30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2B30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B30B2
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B30B2#FFFFFF#000000##FFFFFF
##2B30B21.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b30b2;
/* rgb */ color: rgb(43, 48, 178);
/* oklch */ color: oklch(40.6% 0.199 271.7);
Tailwind
colors: {
  custom: {
    50: '#7b6aca',
    500: '#2b30b2',
    950: '#000000',
  },
}
SCSS
$custom: #2b30b2;
$custom-light: #7b6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2b30b2",
  "rgb": {
    "r": 43,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 237.778,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40592,
    "c": 0.19924,
    "h": 271.7
  },
  "luminance": 0.05842
}

Semantic roles & 50–950 ramp

primary
#2B30B2
secondary
#C7C372
accent
#DE44E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2B30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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