#2F266D#2F266D

#2F266D is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.5% C 0.118 H 283.4°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2F266D
RGBrgb(47, 38, 109)
HSLhsl(248, 48%, 29%)
HSVhsv(248, 65%, 43%)
CMYKcmyk(56.9%, 65.1%, 0%, 57.3%)
CIE-LABlab(20.42, 25.57, -40.09)
CIE-LCHlch(20.42, 47.54, 302.53°)
OKLaboklab(32.46% 0.0274 -0.115)
OKLCHoklch(32.46% 0.118 283.4)
XYZxyz(4.6249, 3.0944, 14.8186)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F266D #646D26
analogous
#26416D #2F266D #53266D
triadic
#2F266D #6D2F26 #266D2F
tetradic
#2F266D #6D2641 #646D26 #266D53
square
#2F266D #6D2641 #646D26 #266D53
split-complementary
#2F266D #6D5326 #416D26
monochromatic
#0A0817 #1B1640 #2F266D #43369A #5B4DC1

Accessibility & contrast

On white

12.97
#2F266D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F266D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F266D
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F266D#FFFFFF#000000##FFFFFF
##2F266D1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#143745
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f266d;
/* rgb */ color: rgb(47, 38, 109);
/* oklch */ color: oklch(32.5% 0.118 283.4);
Tailwind
colors: {
  custom: {
    50: '#6e6197',
    500: '#2f266d',
    950: '#000000',
  },
}
SCSS
$custom: #2f266d;
$custom-light: #6e6197;
$custom-dark: #000000;
JSON
{
  "hex": "#2f266d",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 109
  },
  "hsl": {
    "h": 247.606,
    "s": 48.299,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32463,
    "c": 0.11823,
    "h": 283.4
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#2F266D
secondary
#96A04F
accent
#D850C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F266D

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

Preview Lab → · Contrast checker → · Palette generator →

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