#2F267D#2F267D

#2F267D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.141 H 280.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2F267D
RGBrgb(47, 38, 125)
HSLhsl(246, 53%, 32%)
HSVhsv(246, 70%, 49%)
CMYKcmyk(62.4%, 69.6%, 0%, 51%)
CIE-LABlab(21.84, 31.07, -48.02)
CIE-LCHlch(21.84, 57.20, 302.90°)
OKLaboklab(33.94% 0.0256 -0.1383)
OKLCHoklch(33.94% 0.141 280.5)
XYZxyz(5.5659, 3.4708, 19.7747)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F267D #747D26
analogous
#26497D #2F267D #5B267D
triadic
#2F267D #7D2F26 #267D2F
tetradic
#2F267D #7D2649 #747D26 #267D5B
square
#2F267D #7D2649 #747D26 #267D5B
split-complementary
#2F267D #7D5B26 #497D26
monochromatic
#0C091F #1D184E #2F267D #4134AC #5F53CB

Accessibility & contrast

On white

12.40
#2F267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F267D
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F267D#FFFFFF#000000##FFFFFF
##2F267D1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f267d;
/* rgb */ color: rgb(47, 38, 125);
/* oklch */ color: oklch(33.9% 0.141 280.5);
Tailwind
colors: {
  custom: {
    50: '#7161a3',
    500: '#2f267d',
    950: '#000000',
  },
}
SCSS
$custom: #2f267d;
$custom-light: #7161a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f267d",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 246.207,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33937,
    "c": 0.14067,
    "h": 280.5
  },
  "luminance": 0.03471
}

Semantic roles & 50–950 ramp

primary
#2F267D
secondary
#A5AF50
accent
#DD4BCE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F267D

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

Preview Lab → · Contrast checker → · Palette generator →

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