#2F2D74#2F2D74

#2F2D74 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.4% C 0.118 H 279.4°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2F2D74
RGBrgb(47, 45, 116)
HSLhsl(242, 44%, 32%)
HSVhsv(242, 61%, 45%)
CMYKcmyk(59.5%, 61.2%, 0%, 54.5%)
CIE-LABlab(22.80, 23.33, -40.73)
CIE-LCHlch(22.80, 46.93, 299.81°)
OKLaboklab(34.39% 0.0194 -0.1169)
OKLCHoklch(34.39% 0.118 279.4)
XYZxyz(5.2621, 3.7417, 16.9645)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D74 #72742D
analogous
#2D4F74 #2F2D74 #532D74
triadic
#2F2D74 #742F2D #2D742F
tetradic
#2F2D74 #742D4F #72742D #2D7453
square
#2F2D74 #742D4F #72742D #2D7453
split-complementary
#2F2D74 #74532D #4F742D
monochromatic
#0B0B1C #1D1C48 #2F2D74 #413EA0 #5F5CC0

Accessibility & contrast

On white

12.01
#2F2D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F2D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D74
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D74#FFFFFF#000000##FFFFFF
##2F2D741.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#083E4C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2d74;
/* rgb */ color: rgb(47, 45, 116);
/* oklch */ color: oklch(34.4% 0.118 279.4);
Tailwind
colors: {
  custom: {
    50: '#6f669d',
    500: '#2f2d74',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d74;
$custom-light: #6f669d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d74",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 116
  },
  "hsl": {
    "h": 241.69,
    "s": 44.099,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34395,
    "c": 0.11846,
    "h": 279.4
  },
  "luminance": 0.03742
}

Semantic roles & 50–950 ramp

primary
#2F2D74
secondary
#A3A557
accent
#D454D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F2D74

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

Preview Lab → · Contrast checker → · Palette generator →

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