#2F2888#2F2888

#2F2888 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.153 H 278.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2F2888
RGBrgb(47, 40, 136)
HSLhsl(244, 55%, 35%)
HSVhsv(244, 71%, 53%)
CMYKcmyk(65.4%, 70.6%, 0%, 46.7%)
CIE-LABlab(23.33, 33.59, -52.50)
CIE-LCHlch(23.33, 62.32, 302.61°)
OKLaboklab(35.33% 0.0223 -0.1514)
OKLCHoklch(35.33% 0.153 278.4)
XYZxyz(6.3736, 3.8990, 23.7045)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2888 #818828
analogous
#285188 #2F2888 #5F2888
triadic
#2F2888 #882F28 #28882F
tetradic
#2F2888 #882851 #818828 #28885F
square
#2F2888 #882851 #818828 #28885F
split-complementary
#2F2888 #885F28 #518828
monochromatic
#0E0C29 #1F1A59 #2F2888 #3F36B7 #645BCF

Accessibility & contrast

On white

11.80
#2F2888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2888
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2888#FFFFFF#000000##FFFFFF
##2F28881.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003486
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2888;
/* rgb */ color: rgb(47, 40, 136);
/* oklch */ color: oklch(35.3% 0.153 278.4);
Tailwind
colors: {
  custom: {
    50: '#7363ac',
    500: '#2f2888',
    950: '#000000',
  },
}
SCSS
$custom: #2f2888;
$custom-light: #7363ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2888",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 244.375,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35333,
    "c": 0.15307,
    "h": 278.4
  },
  "luminance": 0.03899
}

Semantic roles & 50–950 ramp

primary
#2F2888
secondary
#ADB458
accent
#DE4AD3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2888

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

Preview Lab → · Contrast checker → · Palette generator →

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