#2F30AC#2F30AC

#2F30AC is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.191 H 273.4°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2F30AC
RGBrgb(47, 48, 172)
HSLhsl(240, 57%, 43%)
HSVhsv(240, 73%, 67%)
CMYKcmyk(72.7%, 72.1%, 0%, 32.5%)
CIE-LABlab(28.63, 41.06, -65.82)
CIE-LCHlch(28.63, 77.58, 301.96°)
OKLaboklab(40.2% 0.0113 -0.1904)
OKLCHoklch(40.2% 0.191 273.4)
XYZxyz(9.6731, 5.6958, 39.6113)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30AC #ACAB2F
analogous
#2F6EAC #2F30AC #6C2FAC
triadic
#2F30AC #AC2F30 #30AC2F
tetradic
#2F30AC #AC2F6E #ACAB2F #2FAC6C
square
#2F30AC #AC2F6E #ACAB2F #2FAC6C
split-complementary
#2F30AC #AC6C2F #6EAC2F
monochromatic
#15154C #22237C #2F30AC #4B4CCE #7B7BDB

Accessibility & contrast

On white

9.82
#2F30AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F30AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30AC
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30AC#FFFFFF#000000##FFFFFF
##2F30AC1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#003DAA
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f30ac;
/* rgb */ color: rgb(47, 48, 172);
/* oklch */ color: oklch(40.2% 0.191 273.4);
Tailwind
colors: {
  custom: {
    50: '#7b69c6',
    500: '#2f30ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f30ac;
$custom-light: #7b69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30ac",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 172
  },
  "hsl": {
    "h": 239.52,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40204,
    "c": 0.19072,
    "h": 273.4
  },
  "luminance": 0.05697
}

Semantic roles & 50–950 ramp

primary
#2F30AC
secondary
#C3C374
accent
#DF47E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F30AC

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

Preview Lab → · Contrast checker → · Palette generator →

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