#2F30A4#2F30A4

#2F30A4 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.181 H 274.0°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#2F30A4
RGBrgb(47, 48, 164)
HSLhsl(239, 55%, 41%)
HSVhsv(239, 71%, 64%)
CMYKcmyk(71.3%, 70.7%, 0%, 35.7%)
CIE-LABlab(27.84, 38.33, -62.31)
CIE-LCHlch(27.84, 73.15, 301.60°)
OKLaboklab(39.4% 0.0125 -0.1801)
OKLCHoklch(39.4% 0.181 274)
XYZxyz(8.9279, 5.3977, 35.6861)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30A4 #A4A32F
analogous
#2F6BA4 #2F30A4 #692FA4
triadic
#2F30A4 #A42F30 #30A42F
tetradic
#2F30A4 #A42F6B #A4A32F #2FA469
square
#2F30A4 #A42F6B #A4A32F #2FA469
split-complementary
#2F30A4 #A4692F #6BA42F
monochromatic
#141445 #212274 #2F30A4 #4647CA #7677D8

Accessibility & contrast

On white

10.10
#2F30A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F30A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30A4
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30A4#FFFFFF#000000##FFFFFF
##2F30A41.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f30a4;
/* rgb */ color: rgb(47, 48, 164);
/* oklch */ color: oklch(39.4% 0.181 274.0);
Tailwind
colors: {
  custom: {
    50: '#7969c0',
    500: '#2f30a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f30a4;
$custom-light: #7969c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30a4",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 164
  },
  "hsl": {
    "h": 239.487,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39396,
    "c": 0.18056,
    "h": 274
  },
  "luminance": 0.05399
}

Semantic roles & 50–950 ramp

primary
#2F30A4
secondary
#C0BF6F
accent
#DD49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F30A4

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

Preview Lab → · Contrast checker → · Palette generator →

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