#2F30B8#2F30B8

#2F30B8 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.4% C 0.206 H 272.6°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#2F30B8
RGBrgb(47, 48, 184)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 74%, 72%)
CMYKcmyk(74.5%, 73.9%, 0%, 27.8%)
CIE-LABlab(29.86, 45.10, -70.96)
CIE-LCHlch(29.86, 84.08, 302.44°)
OKLaboklab(41.44% 0.0093 -0.2053)
OKLCHoklch(41.44% 0.206 272.6)
XYZxyz(10.8781, 6.1778, 45.9572)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30B8 #B8B72F
analogous
#2F74B8 #2F30B8 #722FB8
triadic
#2F30B8 #B82F30 #30B82F
tetradic
#2F30B8 #B82F74 #B8B72F #2FB872
square
#2F30B8 #B82F74 #B8B72F #2FB872
split-complementary
#2F30B8 #B8722F #74B82F
monochromatic
#161757 #232387 #2F30B8 #5252D3 #8283DF

Accessibility & contrast

On white

9.39
#2F30B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F30B8
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30B8#FFFFFF#000000##FFFFFF
##2F30B81.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBC
Deuteranopia (green-blind)
#0040B6
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f30b8;
/* rgb */ color: rgb(47, 48, 184);
/* oklch */ color: oklch(41.4% 0.206 272.6);
Tailwind
colors: {
  custom: {
    50: '#7e6acf',
    500: '#2f30b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f30b8;
$custom-light: #7e6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30b8",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 239.562,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41444,
    "c": 0.20556,
    "h": 272.6
  },
  "luminance": 0.06179
}

Semantic roles & 50–950 ramp

primary
#2F30B8
secondary
#C8C87B
accent
#E145E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2F30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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