#2F2F8B#2F2F8B

#2F2F8B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.149 H 276.3°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#2F2F8B
RGBrgb(47, 47, 139)
HSLhsl(240, 49%, 36%)
HSVhsv(240, 66%, 55%)
CMYKcmyk(66.2%, 66.2%, 0%, 45.5%)
CIE-LABlab(25.26, 30.19, -51.21)
CIE-LCHlch(25.26, 59.45, 300.52°)
OKLaboklab(36.82% 0.0162 -0.1476)
OKLCHoklch(36.82% 0.149 276.3)
XYZxyz(6.8475, 4.5009, 24.9290)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F8B #8B8B2F
analogous
#2F5D8B #2F2F8B #5D2F8B
triadic
#2F2F8B #8B2F2F #2F8B2F
tetradic
#2F2F8B #8B2F5D #8B8B2F #2F8B5D
square
#2F2F8B #8B2F5D #8B8B2F #2F8B5D
split-complementary
#2F2F8B #8B5D2F #5D8B2F
monochromatic
#101030 #20205D #2F2F8B #3E3EB9 #6868CC

Accessibility & contrast

On white

11.05
#2F2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2F2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F8B
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F8B#FFFFFF#000000##FFFFFF
##2F2F8B1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f2f8b;
/* rgb */ color: rgb(47, 47, 139);
/* oklch */ color: oklch(36.8% 0.149 276.3);
Tailwind
colors: {
  custom: {
    50: '#7368ae',
    500: '#2f2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f8b;
$custom-light: #7368ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f8b",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 240,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36815,
    "c": 0.14853,
    "h": 276.3
  },
  "luminance": 0.04501
}

Semantic roles & 50–950 ramp

primary
#2F2F8B
secondary
#B3B363
accent
#D94FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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