#2F2A98#2F2A98

#2F2A98 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.172 H 276.1°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2F2A98
RGBrgb(47, 42, 152)
HSLhsl(243, 57%, 38%)
HSVhsv(243, 72%, 60%)
CMYKcmyk(69.1%, 72.4%, 0%, 40.4%)
CIE-LABlab(25.34, 37.83, -59.11)
CIE-LCHlch(25.34, 70.18, 302.62°)
OKLaboklab(37.25% 0.0182 -0.1708)
OKLCHoklch(37.25% 0.172 276.1)
XYZxyz(7.6659, 4.5266, 30.1694)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A98 #93982A
analogous
#2A5C98 #2F2A98 #662A98
triadic
#2F2A98 #982F2A #2A982F
tetradic
#2F2A98 #982A5C #93982A #2A9866
square
#2F2A98 #982A5C #93982A #2A9866
split-complementary
#2F2A98 #98662A #5C982A
monochromatic
#111038 #201D68 #2F2A98 #3E37C8 #6C67D5

Accessibility & contrast

On white

11.02
#2F2A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F2A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A98
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A98#FFFFFF#000000##FFFFFF
##2F2A981.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f2a98;
/* rgb */ color: rgb(47, 42, 152);
/* oklch */ color: oklch(37.2% 0.172 276.1);
Tailwind
colors: {
  custom: {
    50: '#7765b7',
    500: '#2f2a98',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a98;
$custom-light: #7765b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a98",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 242.727,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37247,
    "c": 0.17173,
    "h": 276.1
  },
  "luminance": 0.04527
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2A98

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

Preview Lab → · Contrast checker → · Palette generator →

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