#2F2A96#2F2A96

#2F2A96 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.169 H 276.3°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#2F2A96
RGBrgb(47, 42, 150)
HSLhsl(243, 56%, 38%)
HSVhsv(243, 72%, 59%)
CMYKcmyk(68.7%, 72%, 0%, 41.2%)
CIE-LABlab(25.14, 37.16, -58.21)
CIE-LCHlch(25.14, 69.05, 302.55°)
OKLaboklab(37.05% 0.0185 -0.1681)
OKLCHoklch(37.05% 0.169 276.3)
XYZxyz(7.5035, 4.4616, 29.3140)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A96 #91962A
analogous
#2A5B96 #2F2A96 #652A96
triadic
#2F2A96 #962F2A #2A962F
tetradic
#2F2A96 #962A5B #91962A #2A9665
square
#2F2A96 #962A5B #91962A #2A9665
split-complementary
#2F2A96 #96652A #5B962A
monochromatic
#110F36 #201D66 #2F2A96 #3E37C6 #6B66D4

Accessibility & contrast

On white

11.10
#2F2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A96
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A96#FFFFFF#000000##FFFFFF
##2F2A961.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f2a96;
/* rgb */ color: rgb(47, 42, 150);
/* oklch */ color: oklch(37.0% 0.169 276.3);
Tailwind
colors: {
  custom: {
    50: '#7665b6',
    500: '#2f2a96',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a96;
$custom-light: #7665b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a96",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 242.778,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37045,
    "c": 0.16916,
    "h": 276.3
  },
  "luminance": 0.04462
}

Semantic roles & 50–950 ramp

primary
#2F2A96
secondary
#B6BA61
accent
#E048D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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