#2F2A94#2F2A94

#2F2A94 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.167 H 276.5°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2F2A94
RGBrgb(47, 42, 148)
HSLhsl(243, 56%, 37%)
HSVhsv(243, 72%, 58%)
CMYKcmyk(68.2%, 71.6%, 0%, 42%)
CIE-LABlab(24.94, 36.47, -57.30)
CIE-LCHlch(24.94, 67.92, 302.48°)
OKLaboklab(36.84% 0.0189 -0.1655)
OKLCHoklch(36.84% 0.167 276.5)
XYZxyz(7.3438, 4.3977, 28.4731)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A94 #8F942A
analogous
#2A5A94 #2F2A94 #642A94
triadic
#2F2A94 #942F2A #2A942F
tetradic
#2F2A94 #942A5A #8F942A #2A9464
square
#2F2A94 #942A5A #8F942A #2A9464
split-complementary
#2F2A94 #94642A #5A942A
monochromatic
#110F35 #201C64 #2F2A94 #3E38C4 #6A65D3

Accessibility & contrast

On white

11.17
#2F2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F2A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A94
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A94#FFFFFF#000000##FFFFFF
##2F2A941.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#003792
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2a94;
/* rgb */ color: rgb(47, 42, 148);
/* oklch */ color: oklch(36.8% 0.167 276.5);
Tailwind
colors: {
  custom: {
    50: '#7665b4',
    500: '#2f2a94',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a94;
$custom-light: #7665b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a94",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 242.83,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36844,
    "c": 0.16656,
    "h": 276.5
  },
  "luminance": 0.04398
}

Semantic roles & 50–950 ramp

primary
#2F2A94
secondary
#B5B960
accent
#DF49D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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