#2F30BB#2F30BB

#2F30BB is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.8% C 0.209 H 272.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2F30BB
RGBrgb(47, 48, 187)
HSLhsl(240, 60%, 46%)
HSVhsv(240, 75%, 73%)
CMYKcmyk(74.9%, 74.3%, 0%, 26.7%)
CIE-LABlab(30.17, 46.10, -72.22)
CIE-LCHlch(30.17, 85.68, 302.55°)
OKLaboklab(41.76% 0.0088 -0.209)
OKLCHoklch(41.76% 0.209 272.4)
XYZxyz(11.1959, 6.3049, 47.6310)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30BB #BBBA2F
analogous
#2F76BB #2F30BB #742FBB
triadic
#2F30BB #BB2F30 #30BB2F
tetradic
#2F30BB #BB2F76 #BBBA2F #2FBB74
square
#2F30BB #BB2F76 #BBBA2F #2FBB74
split-complementary
#2F30BB #BB742F #76BB2F
monochromatic
#161759 #23238A #2F30BB #5354D4 #8485E0

Accessibility & contrast

On white

9.29
#2F30BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F30BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30BB
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30BB#FFFFFF#000000##FFFFFF
##2F30BB1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBF
Deuteranopia (green-blind)
#0040B9
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f30bb;
/* rgb */ color: rgb(47, 48, 187);
/* oklch */ color: oklch(41.8% 0.209 272.4);
Tailwind
colors: {
  custom: {
    50: '#7e6ad1',
    500: '#2f30bb',
    950: '#000000',
  },
}
SCSS
$custom: #2f30bb;
$custom-light: #7e6ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30bb",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 187
  },
  "hsl": {
    "h": 239.571,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.41759,
    "c": 0.2092,
    "h": 272.4
  },
  "luminance": 0.06306
}

Semantic roles & 50–950 ramp

primary
#2F30BB
secondary
#C9C97C
accent
#E245E3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2F30BB

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

Preview Lab → · Contrast checker → · Palette generator →

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