#2F266F#2F266F

#2F266F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.121 H 283.0°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2F266F
RGBrgb(47, 38, 111)
HSLhsl(247, 49%, 29%)
HSVhsv(247, 66%, 44%)
CMYKcmyk(57.7%, 65.8%, 0%, 56.5%)
CIE-LABlab(20.59, 26.25, -41.10)
CIE-LCHlch(20.59, 48.77, 302.57°)
OKLaboklab(32.64% 0.0272 -0.118)
OKLCHoklch(32.64% 0.121 283)
XYZxyz(4.7338, 3.1380, 15.3921)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F266F #666F26
analogous
#26426F #2F266F #54266F
triadic
#2F266F #6F2F26 #266F2F
tetradic
#2F266F #6F2642 #666F26 #266F54
square
#2F266F #6F2642 #666F26 #266F54
split-complementary
#2F266F #6F5426 #426F26
monochromatic
#0A0817 #1C1641 #2F266F #42369D #5C4DC2

Accessibility & contrast

On white

12.90
#2F266F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F266F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F266F
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F266F#FFFFFF#000000##FFFFFF
##2F266F1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002F6E
Tritanopia (blue-blind)
#113846
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f266f;
/* rgb */ color: rgb(47, 38, 111);
/* oklch */ color: oklch(32.6% 0.121 283.0);
Tailwind
colors: {
  custom: {
    50: '#6e6199',
    500: '#2f266f',
    950: '#000000',
  },
}
SCSS
$custom: #2f266f;
$custom-light: #6e6199;
$custom-dark: #000000;
JSON
{
  "hex": "#2f266f",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 111
  },
  "hsl": {
    "h": 247.397,
    "s": 48.993,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32641,
    "c": 0.1211,
    "h": 283
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

primary
#2F266F
secondary
#98A24F
accent
#D94FC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F266F

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

Preview Lab → · Contrast checker → · Palette generator →

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