#2F30AA#2F30AA

#2F30AA is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.188 H 273.5°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2F30AA
RGBrgb(47, 48, 170)
HSLhsl(240, 57%, 43%)
HSVhsv(240, 72%, 67%)
CMYKcmyk(72.4%, 71.8%, 0%, 33.3%)
CIE-LABlab(28.43, 40.38, -64.95)
CIE-LCHlch(28.43, 76.48, 301.87°)
OKLaboklab(40% 0.0116 -0.1878)
OKLCHoklch(40% 0.188 273.5)
XYZxyz(9.4825, 5.6196, 38.6074)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30AA #AAA92F
analogous
#2F6EAA #2F30AA #6B2FAA
triadic
#2F30AA #AA2F30 #30AA2F
tetradic
#2F30AA #AA2F6E #AAA92F #2FAA6B
square
#2F30AA #AA2F6E #AAA92F #2FAA6B
split-complementary
#2F30AA #AA6B2F #6EAA2F
monochromatic
#14154A #22227A #2F30AA #494ACD #797ADA

Accessibility & contrast

On white

9.89
#2F30AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2F30AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30AA
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30AA#FFFFFF#000000##FFFFFF
##2F30AA1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#003DA8
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f30aa;
/* rgb */ color: rgb(47, 48, 170);
/* oklch */ color: oklch(40.0% 0.188 273.5);
Tailwind
colors: {
  custom: {
    50: '#7a69c4',
    500: '#2f30aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f30aa;
$custom-light: #7a69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30aa",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 239.512,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40001,
    "c": 0.1882,
    "h": 273.5
  },
  "luminance": 0.05621
}

Semantic roles & 50–950 ramp

primary
#2F30AA
secondary
#C2C272
accent
#DF48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F30AA

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

Preview Lab → · Contrast checker → · Palette generator →

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