#2F30B6#2F30B6

#2F30B6 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.2% C 0.203 H 272.7°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#2F30B6
RGBrgb(47, 48, 182)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 74%, 71%)
CMYKcmyk(74.2%, 73.6%, 0%, 28.6%)
CIE-LABlab(29.65, 44.43, -70.12)
CIE-LCHlch(29.65, 83.01, 302.36°)
OKLaboklab(41.24% 0.0096 -0.2029)
OKLCHoklch(41.24% 0.203 272.7)
XYZxyz(10.6699, 6.0945, 44.8609)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30B6 #B6B52F
analogous
#2F73B6 #2F30B6 #722FB6
triadic
#2F30B6 #B62F30 #30B62F
tetradic
#2F30B6 #B62F73 #B6B52F #2FB672
square
#2F30B6 #B62F73 #B6B52F #2FB672
split-complementary
#2F30B6 #B6722F #73B62F
monochromatic
#161655 #222385 #2F30B6 #5051D2 #8182DE

Accessibility & contrast

On white

9.46
#2F30B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F30B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30B6
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30B6#FFFFFF#000000##FFFFFF
##2F30B61.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#003FB4
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f30b6;
/* rgb */ color: rgb(47, 48, 182);
/* oklch */ color: oklch(41.2% 0.203 272.7);
Tailwind
colors: {
  custom: {
    50: '#7d6acd',
    500: '#2f30b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f30b6;
$custom-light: #7d6acd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30b6",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 239.556,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41235,
    "c": 0.20312,
    "h": 272.7
  },
  "luminance": 0.06096
}

Semantic roles & 50–950 ramp

primary
#2F30B6
secondary
#C7C779
accent
#E146E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2F30B6

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

Preview Lab → · Contrast checker → · Palette generator →

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