#2F266B#2F266B

#2F266B is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.3% C 0.115 H 283.8°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2F266B
RGBrgb(47, 38, 107)
HSLhsl(248, 48%, 28%)
HSVhsv(248, 64%, 42%)
CMYKcmyk(56.1%, 64.5%, 0%, 58%)
CIE-LABlab(20.25, 24.88, -39.06)
CIE-LCHlch(20.25, 46.31, 302.49°)
OKLaboklab(32.29% 0.0275 -0.112)
OKLCHoklch(32.29% 0.115 283.8)
XYZxyz(4.5184, 3.0518, 14.2580)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F266B #626B26
analogous
#263F6B #2F266B #51266B
triadic
#2F266B #6B2F26 #266B2F
tetradic
#2F266B #6B263F #626B26 #266B51
square
#2F266B #6B263F #626B26 #266B51
split-complementary
#2F266B #6B5126 #3F6B26
monochromatic
#0A0817 #1B163E #2F266B #433698 #5B4CBF

Accessibility & contrast

On white

13.04
#2F266B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F266B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F266B
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F266B#FFFFFF#000000##FFFFFF
##2F266B1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#163644
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f266b;
/* rgb */ color: rgb(47, 38, 107);
/* oklch */ color: oklch(32.3% 0.115 283.8);
Tailwind
colors: {
  custom: {
    50: '#6e6196',
    500: '#2f266b',
    950: '#000000',
  },
}
SCSS
$custom: #2f266b;
$custom-light: #6e6196;
$custom-dark: #000000;
JSON
{
  "hex": "#2f266b",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 107
  },
  "hsl": {
    "h": 247.826,
    "s": 47.586,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32288,
    "c": 0.11533,
    "h": 283.8
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#2F266B
secondary
#949E4F
accent
#D751C6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #2F266B

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

Preview Lab → · Contrast checker → · Palette generator →

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