#2F2E98#2F2E98

#2F2E98 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.167 H 275.3°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#2F2E98
RGBrgb(47, 46, 152)
HSLhsl(241, 54%, 39%)
HSVhsv(241, 70%, 60%)
CMYKcmyk(69.1%, 69.7%, 0%, 40.4%)
CIE-LABlab(26.23, 35.40, -57.65)
CIE-LCHlch(26.23, 67.65, 301.55°)
OKLaboklab(37.89% 0.0155 -0.1665)
OKLCHoklch(37.89% 0.167 275.3)
XYZxyz(7.8149, 4.8246, 30.2191)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2E98 #97982E
analogous
#2E6298 #2F2E98 #642E98
triadic
#2F2E98 #982F2E #2E982F
tetradic
#2F2E98 #982E62 #97982E #2E9864
square
#2F2E98 #982E62 #97982E #2E9864
split-complementary
#2F2E98 #98642E #62982E
monochromatic
#12123A #202069 #2F2E98 #403EC5 #6E6DD3

Accessibility & contrast

On white

10.69
#2F2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F2E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2E98
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2E98#FFFFFF#000000##FFFFFF
##2F2E981.0010.691.9710.69
#FFFFFF10.691.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2e98;
/* rgb */ color: rgb(47, 46, 152);
/* oklch */ color: oklch(37.9% 0.167 275.3);
Tailwind
colors: {
  custom: {
    50: '#7667b7',
    500: '#2f2e98',
    950: '#000000',
  },
}
SCSS
$custom: #2f2e98;
$custom-light: #7667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2e98",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 240.566,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37885,
    "c": 0.16723,
    "h": 275.3
  },
  "luminance": 0.04825
}

Semantic roles & 50–950 ramp

primary
#2F2E98
secondary
#B9BA68
accent
#DD4BDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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