#2F268F#2F268F

#2F268F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.165 H 277.9°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#2F268F
RGBrgb(47, 38, 143)
HSLhsl(245, 58%, 35%)
HSVhsv(245, 73%, 56%)
CMYKcmyk(67.1%, 73.4%, 0%, 43.9%)
CIE-LABlab(23.58, 37.17, -56.45)
CIE-LCHlch(23.58, 67.59, 303.37°)
OKLaboklab(35.72% 0.0225 -0.163)
OKLCHoklch(35.72% 0.165 277.9)
XYZxyz(6.8217, 3.9732, 26.3887)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F268F #868F26
analogous
#26518F #2F268F #63268F
triadic
#2F268F #8F2F26 #268F2F
tetradic
#2F268F #8F2651 #868F26 #268F63
square
#2F268F #8F2651 #868F26 #268F63
split-complementary
#2F268F #8F6326 #518F26
monochromatic
#0F0C2E #1F195F #2F268F #3F33BF #665CD4

Accessibility & contrast

On white

11.70
#2F268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F268F
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F268F#FFFFFF#000000##FFFFFF
##2F268F1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f268f;
/* rgb */ color: rgb(47, 38, 143);
/* oklch */ color: oklch(35.7% 0.165 277.9);
Tailwind
colors: {
  custom: {
    50: '#7562b1',
    500: '#2f268f',
    950: '#000000',
  },
}
SCSS
$custom: #2f268f;
$custom-light: #7562b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f268f",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 245.143,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35719,
    "c": 0.16454,
    "h": 277.9
  },
  "luminance": 0.03974
}

Semantic roles & 50–950 ramp

primary
#2F268F
secondary
#B0B958
accent
#E147D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F268F

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

Preview Lab → · Contrast checker → · Palette generator →

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