#2F30BA#2F30BA

#2F30BA is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.7% C 0.208 H 272.5°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#2F30BA
RGBrgb(47, 48, 186)
HSLhsl(240, 60%, 46%)
HSVhsv(240, 75%, 73%)
CMYKcmyk(74.7%, 74.2%, 0%, 27.1%)
CIE-LABlab(30.06, 45.76, -71.80)
CIE-LCHlch(30.06, 85.15, 302.51°)
OKLaboklab(41.65% 0.0089 -0.2078)
OKLCHoklch(41.65% 0.208 272.5)
XYZxyz(11.0892, 6.2623, 47.0692)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30BA #BAB92F
analogous
#2F76BA #2F30BA #732FBA
triadic
#2F30BA #BA2F30 #30BA2F
tetradic
#2F30BA #BA2F76 #BAB92F #2FBA73
square
#2F30BA #BA2F76 #BAB92F #2FBA73
split-complementary
#2F30BA #BA732F #76BA2F
monochromatic
#161758 #232389 #2F30BA #5354D3 #8484E0

Accessibility & contrast

On white

9.32
#2F30BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2F30BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30BA
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30BA#FFFFFF#000000##FFFFFF
##2F30BA1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0040B8
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f30ba;
/* rgb */ color: rgb(47, 48, 186);
/* oklch */ color: oklch(41.7% 0.208 272.5);
Tailwind
colors: {
  custom: {
    50: '#7e6ad0',
    500: '#2f30ba',
    950: '#000000',
  },
}
SCSS
$custom: #2f30ba;
$custom-light: #7e6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30ba",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 186
  },
  "hsl": {
    "h": 239.568,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41653,
    "c": 0.20799,
    "h": 272.5
  },
  "luminance": 0.06263
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F30BA

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

Preview Lab → · Contrast checker → · Palette generator →

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