#2F30A5#2F30A5

#2F30A5 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.182 H 273.9°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2F30A5
RGBrgb(47, 48, 165)
HSLhsl(239, 56%, 42%)
HSVhsv(239, 72%, 65%)
CMYKcmyk(71.5%, 70.9%, 0%, 35.3%)
CIE-LABlab(27.94, 38.67, -62.75)
CIE-LCHlch(27.94, 73.71, 301.64°)
OKLaboklab(39.5% 0.0123 -0.1814)
OKLCHoklch(39.5% 0.182 273.9)
XYZxyz(9.0185, 5.4340, 36.1636)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30A5 #A5A42F
analogous
#2F6BA5 #2F30A5 #692FA5
triadic
#2F30A5 #A52F30 #30A52F
tetradic
#2F30A5 #A52F6B #A5A42F #2FA569
square
#2F30A5 #A52F6B #A5A42F #2FA569
split-complementary
#2F30A5 #A5692F #6BA52F
monochromatic
#141446 #212275 #2F30A5 #4748CB #7677D8

Accessibility & contrast

On white

10.06
#2F30A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F30A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30A5
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30A5#FFFFFF#000000##FFFFFF
##2F30A51.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f30a5;
/* rgb */ color: rgb(47, 48, 165);
/* oklch */ color: oklch(39.5% 0.182 273.9);
Tailwind
colors: {
  custom: {
    50: '#7969c1',
    500: '#2f30a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f30a5;
$custom-light: #7969c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30a5",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 239.492,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39496,
    "c": 0.18185,
    "h": 273.9
  },
  "luminance": 0.05435
}

Semantic roles & 50–950 ramp

primary
#2F30A5
secondary
#C0BF70
accent
#DE49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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