#2F30A0#2F30A0

#2F30A0 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.175 H 274.3°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2F30A0
RGBrgb(47, 48, 160)
HSLhsl(239, 55%, 41%)
HSVhsv(239, 71%, 63%)
CMYKcmyk(70.6%, 70%, 0%, 37.3%)
CIE-LABlab(27.45, 36.94, -60.52)
CIE-LCHlch(27.45, 70.91, 301.40°)
OKLaboklab(39% 0.013 -0.1749)
OKLCHoklch(39% 0.175 274.3)
XYZxyz(8.5723, 5.2555, 33.8135)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30A0 #A09F2F
analogous
#2F68A0 #2F30A0 #662FA0
triadic
#2F30A0 #A02F30 #30A02F
tetradic
#2F30A0 #A02F68 #A09F2F #2FA066
square
#2F30A0 #A02F68 #A09F2F #2FA066
split-complementary
#2F30A0 #A0662F #68A02F
monochromatic
#131441 #212271 #2F30A0 #4445C8 #7374D6

Accessibility & contrast

On white

10.24
#2F30A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F30A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30A0
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30A0#FFFFFF#000000##FFFFFF
##2F30A01.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#003C9E
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f30a0;
/* rgb */ color: rgb(47, 48, 160);
/* oklch */ color: oklch(39.0% 0.175 274.3);
Tailwind
colors: {
  custom: {
    50: '#7869bd',
    500: '#2f30a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f30a0;
$custom-light: #7869bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30a0",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 160
  },
  "hsl": {
    "h": 239.469,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38999,
    "c": 0.17539,
    "h": 274.3
  },
  "luminance": 0.05256
}

Semantic roles & 50–950 ramp

primary
#2F30A0
secondary
#BEBD6D
accent
#DD4ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F30A0

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

Preview Lab → · Contrast checker → · Palette generator →

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