#2F30B9#2F30B9

#2F30B9 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.5% C 0.207 H 272.5°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2F30B9
RGBrgb(47, 48, 185)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 75%, 73%)
CMYKcmyk(74.6%, 74.1%, 0%, 27.5%)
CIE-LABlab(29.96, 45.43, -71.38)
CIE-LCHlch(29.96, 84.61, 302.48°)
OKLaboklab(41.55% 0.0091 -0.2066)
OKLCHoklch(41.55% 0.207 272.5)
XYZxyz(10.9833, 6.2199, 46.5113)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30B9 #B9B82F
analogous
#2F75B9 #2F30B9 #732FB9
triadic
#2F30B9 #B92F30 #30B92F
tetradic
#2F30B9 #B92F75 #B9B82F #2FB973
square
#2F30B9 #B92F75 #B9B82F #2FB973
split-complementary
#2F30B9 #B9732F #75B92F
monochromatic
#161757 #232388 #2F30B9 #5253D3 #8384DF

Accessibility & contrast

On white

9.36
#2F30B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F30B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30B9
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30B9#FFFFFF#000000##FFFFFF
##2F30B91.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f30b9;
/* rgb */ color: rgb(47, 48, 185);
/* oklch */ color: oklch(41.5% 0.207 272.5);
Tailwind
colors: {
  custom: {
    50: '#7e6acf',
    500: '#2f30b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f30b9;
$custom-light: #7e6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30b9",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 185
  },
  "hsl": {
    "h": 239.565,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41549,
    "c": 0.20678,
    "h": 272.5
  },
  "luminance": 0.06221
}

Semantic roles & 50–950 ramp

primary
#2F30B9
secondary
#C9C87B
accent
#E245E3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2F30B9

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

Preview Lab → · Contrast checker → · Palette generator →

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