#2F2698#2F2698

#2F2698 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.176 H 276.7°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2F2698
RGBrgb(47, 38, 152)
HSLhsl(245, 60%, 37%)
HSVhsv(245, 75%, 60%)
CMYKcmyk(69.1%, 75%, 0%, 40.4%)
CIE-LABlab(24.50, 40.17, -60.49)
CIE-LCHlch(24.50, 72.61, 303.59°)
OKLaboklab(36.65% 0.0207 -0.1748)
OKLCHoklch(36.65% 0.176 276.7)
XYZxyz(7.5311, 4.2569, 30.1245)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2698 #8F9826
analogous
#265698 #2F2698 #682698
triadic
#2F2698 #982F26 #26982F
tetradic
#2F2698 #982656 #8F9826 #269868
square
#2F2698 #982656 #8F9826 #269868
split-complementary
#2F2698 #986826 #569826
monochromatic
#110E36 #201A67 #2F2698 #3E32C9 #6A61D7

Accessibility & contrast

On white

11.34
#2F2698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F2698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2698
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2698#FFFFFF#000000##FFFFFF
##2F26981.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2698;
/* rgb */ color: rgb(47, 38, 152);
/* oklch */ color: oklch(36.7% 0.176 276.7);
Tailwind
colors: {
  custom: {
    50: '#7762b7',
    500: '#2f2698',
    950: '#000000',
  },
}
SCSS
$custom: #2f2698;
$custom-light: #7762b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2698",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 244.737,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36651,
    "c": 0.176,
    "h": 276.7
  },
  "luminance": 0.04258
}

Semantic roles & 50–950 ramp

primary
#2F2698
secondary
#B5BD5D
accent
#E345D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2698

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

Preview Lab → · Contrast checker → · Palette generator →

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