#2F2398#2F2398

#2F2398 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.179 H 277.2°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#2F2398
RGBrgb(47, 35, 152)
HSLhsl(246, 63%, 37%)
HSVhsv(246, 77%, 60%)
CMYKcmyk(69.1%, 77%, 0%, 40.4%)
CIE-LABlab(23.91, 41.85, -61.47)
CIE-LCHlch(23.91, 74.36, 304.25°)
OKLaboklab(36.23% 0.0224 -0.1776)
OKLCHoklch(36.23% 0.179 277.2)
XYZxyz(7.4390, 4.0727, 30.0938)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2398 #8C9823
analogous
#235298 #2F2398 #6A2398
triadic
#2F2398 #982F23 #23982F
tetradic
#2F2398 #982352 #8C9823 #23986A
square
#2F2398 #982352 #8C9823 #23986A
split-complementary
#2F2398 #986A23 #529823
monochromatic
#100C35 #201866 #2F2398 #3E2ECA #695CD9

Accessibility & contrast

On white

11.57
#2F2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2398
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2398#FFFFFF#000000##FFFFFF
##2F23981.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2398;
/* rgb */ color: rgb(47, 35, 152);
/* oklch */ color: oklch(36.2% 0.179 277.2);
Tailwind
colors: {
  custom: {
    50: '#7760b8',
    500: '#2f2398',
    950: '#000000',
  },
}
SCSS
$custom: #2f2398;
$custom-light: #7760b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2398",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 246.154,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36232,
    "c": 0.17901,
    "h": 277.2
  },
  "luminance": 0.04073
}

Semantic roles & 50–950 ramp

primary
#2F2398
secondary
#B4BE59
accent
#E642D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2398

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

Preview Lab → · Contrast checker → · Palette generator →

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