#2F2B98#2F2B98

#2F2B98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.171 H 275.9°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2F2B98
RGBrgb(47, 43, 152)
HSLhsl(242, 56%, 38%)
HSVhsv(242, 72%, 60%)
CMYKcmyk(69.1%, 71.7%, 0%, 40.4%)
CIE-LABlab(25.56, 37.23, -58.75)
CIE-LCHlch(25.56, 69.56, 302.36°)
OKLaboklab(37.4% 0.0175 -0.1697)
OKLCHoklch(37.4% 0.171 275.9)
XYZxyz(7.7018, 4.5984, 30.1814)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B98 #94982B
analogous
#2B5D98 #2F2B98 #652B98
triadic
#2F2B98 #982F2B #2B982F
tetradic
#2F2B98 #982B5D #94982B #2B9865
square
#2F2B98 #982B5D #94982B #2B9865
split-complementary
#2F2B98 #98652B #5D982B
monochromatic
#111039 #201E68 #2F2B98 #3E39C7 #6D69D5

Accessibility & contrast

On white

10.94
#2F2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B98
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B98#FFFFFF#000000##FFFFFF
##2F2B981.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2b98;
/* rgb */ color: rgb(47, 43, 152);
/* oklch */ color: oklch(37.4% 0.171 275.9);
Tailwind
colors: {
  custom: {
    50: '#7765b7',
    500: '#2f2b98',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b98;
$custom-light: #7765b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b98",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 242.202,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37403,
    "c": 0.17063,
    "h": 275.9
  },
  "luminance": 0.04599
}

Semantic roles & 50–950 ramp

primary
#2F2B98
secondary
#B8BB64
accent
#DF49DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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