#2F30A3#2F30A3

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

Color values

HEX#2F30A3
RGBrgb(47, 48, 163)
HSLhsl(239, 55%, 41%)
HSVhsv(239, 71%, 64%)
CMYKcmyk(71.2%, 70.6%, 0%, 36.1%)
CIE-LABlab(27.74, 37.98, -61.86)
CIE-LCHlch(27.74, 72.59, 301.55°)
OKLaboklab(39.3% 0.0126 -0.1788)
OKLCHoklch(39.3% 0.179 274)
XYZxyz(8.8379, 5.3617, 35.2124)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30A3 #A3A22F
analogous
#2F6AA3 #2F30A3 #682FA3
triadic
#2F30A3 #A32F30 #30A32F
tetradic
#2F30A3 #A32F6A #A3A22F #2FA368
square
#2F30A3 #A32F6A #A3A22F #2FA368
split-complementary
#2F30A3 #A3682F #6AA32F
monochromatic
#141444 #212273 #2F30A3 #4647CA #7576D7

Accessibility & contrast

On white

10.13
#2F30A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2F30A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30A3
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30A3#FFFFFF#000000##FFFFFF
##2F30A31.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A6
Deuteranopia (green-blind)
#003CA1
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f30a3;
/* rgb */ color: rgb(47, 48, 163);
/* oklch */ color: oklch(39.3% 0.179 274.0);
Tailwind
colors: {
  custom: {
    50: '#7969bf',
    500: '#2f30a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f30a3;
$custom-light: #7969bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30a3",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 163
  },
  "hsl": {
    "h": 239.483,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39297,
    "c": 0.17927,
    "h": 274
  },
  "luminance": 0.05363
}

Semantic roles & 50–950 ramp

primary
#2F30A3
secondary
#BFBE6F
accent
#DD49DF
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F30A3

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

Preview Lab → · Contrast checker → · Palette generator →

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