#2F2D7B#2F2D7B

#2F2D7B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.129 H 278.6°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#2F2D7B
RGBrgb(47, 45, 123)
HSLhsl(242, 46%, 33%)
HSVhsv(242, 63%, 48%)
CMYKcmyk(61.8%, 63.4%, 0%, 51.8%)
CIE-LABlab(23.37, 25.82, -44.25)
CIE-LCHlch(23.37, 51.23, 300.26°)
OKLaboklab(35% 0.0192 -0.1272)
OKLCHoklch(35% 0.129 278.6)
XYZxyz(5.6847, 3.9108, 19.1903)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D7B #797B2D
analogous
#2D527B #2F2D7B #562D7B
triadic
#2F2D7B #7B2F2D #2D7B2F
tetradic
#2F2D7B #7B2D52 #797B2D #2D7B56
square
#2F2D7B #7B2D52 #797B2D #2D7B56
split-complementary
#2F2D7B #7B562D #527B2D
monochromatic
#0D0C21 #1E1D4E #2F2D7B #403DA8 #615EC4

Accessibility & contrast

On white

11.78
#2F2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F2D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D7B
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D7B#FFFFFF#000000##FFFFFF
##2F2D7B1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2d7b;
/* rgb */ color: rgb(47, 45, 123);
/* oklch */ color: oklch(35.0% 0.129 278.6);
Tailwind
colors: {
  custom: {
    50: '#7066a2',
    500: '#2f2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d7b;
$custom-light: #7066a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d7b",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 241.538,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35,
    "c": 0.12865,
    "h": 278.6
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#2F2D7B
secondary
#A8AB59
accent
#D652D3
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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