#2F30A2#2F30A2

#2F30A2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.178 H 274.1°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2F30A2
RGBrgb(47, 48, 162)
HSLhsl(239, 55%, 41%)
HSVhsv(239, 71%, 64%)
CMYKcmyk(71%, 70.4%, 0%, 36.5%)
CIE-LABlab(27.64, 37.63, -61.42)
CIE-LCHlch(27.64, 72.03, 301.50°)
OKLaboklab(39.2% 0.0127 -0.1775)
OKLCHoklch(39.2% 0.178 274.1)
XYZxyz(8.7487, 5.3260, 34.7424)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30A2 #A2A12F
analogous
#2F69A2 #2F30A2 #672FA2
triadic
#2F30A2 #A22F30 #30A22F
tetradic
#2F30A2 #A22F69 #A2A12F #2FA267
square
#2F30A2 #A22F69 #A2A12F #2FA267
split-complementary
#2F30A2 #A2672F #69A22F
monochromatic
#131443 #212273 #2F30A2 #4546C9 #7575D7

Accessibility & contrast

On white

10.17
#2F30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F30A2
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30A2#FFFFFF#000000##FFFFFF
##2F30A21.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f30a2;
/* rgb */ color: rgb(47, 48, 162);
/* oklch */ color: oklch(39.2% 0.178 274.1);
Tailwind
colors: {
  custom: {
    50: '#7869bf',
    500: '#2f30a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f30a2;
$custom-light: #7869bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30a2",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 239.478,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39197,
    "c": 0.17799,
    "h": 274.1
  },
  "luminance": 0.05327
}

Semantic roles & 50–950 ramp

primary
#2F30A2
secondary
#BFBE6E
accent
#DD49DE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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