#2F2F7C#2F2F7C

#2F2F7C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.127 H 277.7°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#2F2F7C
RGBrgb(47, 47, 124)
HSLhsl(240, 45%, 34%)
HSVhsv(240, 62%, 49%)
CMYKcmyk(62.1%, 62.1%, 0%, 51.4%)
CIE-LABlab(23.97, 24.84, -43.91)
CIE-LCHlch(23.97, 50.44, 299.50°)
OKLaboklab(35.47% 0.0171 -0.1262)
OKLCHoklch(35.47% 0.127 277.7)
XYZxyz(5.8257, 4.0922, 19.5477)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F7C #7C7C2F
analogous
#2F557C #2F2F7C #552F7C
triadic
#2F2F7C #7C2F2F #2F7C2F
tetradic
#2F2F7C #7C2F55 #7C7C2F #2F7C55
square
#2F2F7C #7C2F55 #7C7C2F #2F7C55
split-complementary
#2F2F7C #7C552F #557C2F
monochromatic
#0D0D23 #1E1E50 #2F2F7C #4040A8 #6262C3

Accessibility & contrast

On white

11.55
#2F2F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F2F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F7C
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F7C#FFFFFF#000000##FFFFFF
##2F2F7C1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2f7c;
/* rgb */ color: rgb(47, 47, 124);
/* oklch */ color: oklch(35.5% 0.127 277.7);
Tailwind
colors: {
  custom: {
    50: '#7067a3',
    500: '#2f2f7c',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f7c;
$custom-light: #7067a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f7c",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 240,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35468,
    "c": 0.12735,
    "h": 277.7
  },
  "luminance": 0.04093
}

Semantic roles & 50–950 ramp

primary
#2F2F7C
secondary
#AAAA5C
accent
#D553D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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