#2F30BE#2F30BE

#2F30BE is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.1% C 0.213 H 272.2°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2F30BE
RGBrgb(47, 48, 190)
HSLhsl(240, 60%, 46%)
HSVhsv(240, 75%, 75%)
CMYKcmyk(75.3%, 74.7%, 0%, 25.5%)
CIE-LABlab(30.48, 47.08, -73.47)
CIE-LCHlch(30.48, 87.27, 302.65°)
OKLaboklab(42.08% 0.0082 -0.2127)
OKLCHoklch(42.08% 0.213 272.2)
XYZxyz(11.5204, 6.4347, 49.3401)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30BE #BEBD2F
analogous
#2F78BE #2F30BE #762FBE
triadic
#2F30BE #BE2F30 #30BE2F
tetradic
#2F30BE #BE2F78 #BEBD2F #2FBE76
square
#2F30BE #BE2F78 #BEBD2F #2FBE76
split-complementary
#2F30BE #BE762F #78BE2F
monochromatic
#17175C #23248D #2F30BE #5556D5 #8687E1

Accessibility & contrast

On white

9.18
#2F30BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F30BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30BE
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30BE#FFFFFF#000000##FFFFFF
##2F30BE1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC2
Deuteranopia (green-blind)
#0041BB
Tritanopia (blue-blind)
#005A75
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f30be;
/* rgb */ color: rgb(47, 48, 190);
/* oklch */ color: oklch(42.1% 0.213 272.2);
Tailwind
colors: {
  custom: {
    50: '#7f6ad3',
    500: '#2f30be',
    950: '#000000',
  },
}
SCSS
$custom: #2f30be;
$custom-light: #7f6ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30be",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 190
  },
  "hsl": {
    "h": 239.58,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.42075,
    "c": 0.21283,
    "h": 272.2
  },
  "luminance": 0.06436
}

Semantic roles & 50–950 ramp

primary
#2F30BE
secondary
#CBCA7E
accent
#E244E3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2F30BE

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

Preview Lab → · Contrast checker → · Palette generator →

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