#2F30A6#2F30A6

#2F30A6 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.183 H 273.8°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#2F30A6
RGBrgb(47, 48, 166)
HSLhsl(239, 56%, 42%)
HSVhsv(239, 72%, 65%)
CMYKcmyk(71.7%, 71.1%, 0%, 34.9%)
CIE-LABlab(28.04, 39.01, -63.19)
CIE-LCHlch(28.04, 74.27, 301.69°)
OKLaboklab(39.6% 0.0122 -0.1827)
OKLCHoklch(39.6% 0.183 273.8)
XYZxyz(9.1099, 5.4705, 36.6448)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30A6 #A6A52F
analogous
#2F6CA6 #2F30A6 #6A2FA6
triadic
#2F30A6 #A62F30 #30A62F
tetradic
#2F30A6 #A62F6C #A6A52F #2FA66A
square
#2F30A6 #A62F6C #A6A52F #2FA66A
split-complementary
#2F30A6 #A66A2F #6CA62F
monochromatic
#141447 #212276 #2F30A6 #4748CB #7778D8

Accessibility & contrast

On white

10.03
#2F30A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F30A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30A6
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30A6#FFFFFF#000000##FFFFFF
##2F30A61.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f30a6;
/* rgb */ color: rgb(47, 48, 166);
/* oklch */ color: oklch(39.6% 0.183 273.8);
Tailwind
colors: {
  custom: {
    50: '#7969c2',
    500: '#2f30a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f30a6;
$custom-light: #7969c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30a6",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 166
  },
  "hsl": {
    "h": 239.496,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39597,
    "c": 0.18313,
    "h": 273.8
  },
  "luminance": 0.05471
}

Semantic roles & 50–950 ramp

primary
#2F30A6
secondary
#C1C070
accent
#DE49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #2F30A6

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

Preview Lab → · Contrast checker → · Palette generator →

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