#2F2F8F#2F2F8F

#2F2F8F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.154 H 275.9°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2F2F8F
RGBrgb(47, 47, 143)
HSLhsl(240, 51%, 37%)
HSVhsv(240, 67%, 56%)
CMYKcmyk(67.1%, 67.1%, 0%, 43.9%)
CIE-LABlab(25.62, 31.61, -53.10)
CIE-LCHlch(25.62, 61.80, 300.77°)
OKLaboklab(37.19% 0.0158 -0.1532)
OKLCHoklch(37.19% 0.154 275.9)
XYZxyz(7.1451, 4.6199, 26.4965)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F8F #8F8F2F
analogous
#2F5F8F #2F2F8F #5F2F8F
triadic
#2F2F8F #8F2F2F #2F8F2F
tetradic
#2F2F8F #8F2F5F #8F8F2F #2F8F5F
square
#2F2F8F #8F2F5F #8F8F2F #2F8F5F
split-complementary
#2F2F8F #8F5F2F #5F8F2F
monochromatic
#111133 #202061 #2F2F8F #3E3EBD #6A6ACE

Accessibility & contrast

On white

10.91
#2F2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F2F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F8F
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F8F#FFFFFF#000000##FFFFFF
##2F2F8F1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2f8f;
/* rgb */ color: rgb(47, 47, 143);
/* oklch */ color: oklch(37.2% 0.154 275.9);
Tailwind
colors: {
  custom: {
    50: '#7468b1',
    500: '#2f2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f8f;
$custom-light: #7468b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f8f",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37189,
    "c": 0.154,
    "h": 275.9
  },
  "luminance": 0.04621
}

Semantic roles & 50–950 ramp

primary
#2F2F8F
secondary
#B5B565
accent
#DA4EDA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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