#2F2BAE#2F2BAE

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

Color values

HEX#2F2BAE
RGBrgb(47, 43, 174)
HSLhsl(242, 60%, 43%)
HSVhsv(242, 75%, 68%)
CMYKcmyk(73%, 75.3%, 0%, 31.8%)
CIE-LABlab(27.81, 44.61, -68.38)
CIE-LCHlch(27.81, 81.64, 303.12°)
OKLaboklab(39.68% 0.0135 -0.1978)
OKLCHoklch(39.68% 0.198 273.9)
XYZxyz(9.6736, 5.3871, 40.5662)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2BAE #AAAE2B
analogous
#2B69AE #2F2BAE #702BAE
triadic
#2F2BAE #AE2F2B #2BAE2F
tetradic
#2F2BAE #AE2B69 #AAAE2B #2BAE70
square
#2F2BAE #AE2B69 #AAAE2B #2BAE70
split-complementary
#2F2BAE #AE702B #69AE2B
monochromatic
#14134C #221F7D #2F2BAE #4945D1 #7976DD

Accessibility & contrast

On white

10.11
#2F2BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F2BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2BAE
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2BAE#FFFFFF#000000##FFFFFF
##2F2BAE1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B2
Deuteranopia (green-blind)
#003BAC
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f2bae;
/* rgb */ color: rgb(47, 43, 174);
/* oklch */ color: oklch(39.7% 0.198 273.9);
Tailwind
colors: {
  custom: {
    50: '#7c66c7',
    500: '#2f2bae',
    950: '#000000',
  },
}
SCSS
$custom: #2f2bae;
$custom-light: #7c66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2bae",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 241.832,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39681,
    "c": 0.19826,
    "h": 273.9
  },
  "luminance": 0.05388
}

Semantic roles & 50–950 ramp

primary
#2F2BAE
secondary
#C2C570
accent
#E444DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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