#2F30AE#2F30AE

#2F30AE is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.193 H 273.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#2F30AE
RGBrgb(47, 48, 174)
HSLhsl(240, 57%, 43%)
HSVhsv(240, 73%, 68%)
CMYKcmyk(73%, 72.4%, 0%, 31.8%)
CIE-LABlab(28.83, 41.74, -66.69)
CIE-LCHlch(28.83, 78.68, 302.04°)
OKLaboklab(40.41% 0.0109 -0.1929)
OKLCHoklch(40.41% 0.193 273.2)
XYZxyz(9.8667, 5.7732, 40.6306)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30AE #AEAD2F
analogous
#2F6FAE #2F30AE #6E2FAE
triadic
#2F30AE #AE2F30 #30AE2F
tetradic
#2F30AE #AE2F6F #AEAD2F #2FAE6E
square
#2F30AE #AE2F6F #AEAD2F #2FAE6E
split-complementary
#2F30AE #AE6E2F #6FAE2F
monochromatic
#15154E #22237E #2F30AE #4C4DCF #7C7DDC

Accessibility & contrast

On white

9.75
#2F30AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F30AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30AE
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30AE#FFFFFF#000000##FFFFFF
##2F30AE1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#003EAC
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f30ae;
/* rgb */ color: rgb(47, 48, 174);
/* oklch */ color: oklch(40.4% 0.193 273.2);
Tailwind
colors: {
  custom: {
    50: '#7b69c7',
    500: '#2f30ae',
    950: '#000000',
  },
}
SCSS
$custom: #2f30ae;
$custom-light: #7b69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30ae",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 174
  },
  "hsl": {
    "h": 239.528,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40408,
    "c": 0.19322,
    "h": 273.2
  },
  "luminance": 0.05774
}

Semantic roles & 50–950 ramp

primary
#2F30AE
secondary
#C4C375
accent
#E047E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F30AE

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

Preview Lab → · Contrast checker → · Palette generator →

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