#2F267B#2F267B

#2F267B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.138 H 280.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#2F267B
RGBrgb(47, 38, 123)
HSLhsl(246, 53%, 32%)
HSVhsv(246, 69%, 48%)
CMYKcmyk(61.8%, 69.1%, 0%, 51.8%)
CIE-LABlab(21.65, 30.38, -47.05)
CIE-LCHlch(21.65, 56.01, 302.85°)
OKLaboklab(33.75% 0.0259 -0.1355)
OKLCHoklch(33.75% 0.138 280.8)
XYZxyz(5.4394, 3.4202, 19.1086)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F267B #727B26
analogous
#26487B #2F267B #5A267B
triadic
#2F267B #7B2F26 #267B2F
tetradic
#2F267B #7B2648 #727B26 #267B5A
square
#2F267B #7B2648 #727B26 #267B5A
split-complementary
#2F267B #7B5A26 #487B26
monochromatic
#0B091D #1D184C #2F267B #4134AA #5F52CA

Accessibility & contrast

On white

12.47
#2F267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F267B
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F267B#FFFFFF#000000##FFFFFF
##2F267B1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f267b;
/* rgb */ color: rgb(47, 38, 123);
/* oklch */ color: oklch(33.7% 0.138 280.8);
Tailwind
colors: {
  custom: {
    50: '#7161a2',
    500: '#2f267b',
    950: '#000000',
  },
}
SCSS
$custom: #2f267b;
$custom-light: #7161a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f267b",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 246.353,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33746,
    "c": 0.13794,
    "h": 280.8
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#2F267B
secondary
#A3AD50
accent
#DC4CCD
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F267B

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

Preview Lab → · Contrast checker → · Palette generator →

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