#2F267A#2F267A

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

Color values

HEX#2F267A
RGBrgb(47, 38, 122)
HSLhsl(246, 53%, 31%)
HSVhsv(246, 69%, 48%)
CMYKcmyk(61.5%, 68.9%, 0%, 52.2%)
CIE-LABlab(21.56, 30.04, -46.57)
CIE-LCHlch(21.56, 55.42, 302.82°)
OKLaboklab(33.65% 0.026 -0.1341)
OKLCHoklch(33.65% 0.137 281)
XYZxyz(5.3772, 3.3953, 18.7806)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F267A #717A26
analogous
#26477A #2F267A #59267A
triadic
#2F267A #7A2F26 #267A2F
tetradic
#2F267A #7A2647 #717A26 #267A59
square
#2F267A #7A2647 #717A26 #267A59
split-complementary
#2F267A #7A5926 #477A26
monochromatic
#0B091D #1D174B #2F267A #4135A9 #5E51C9

Accessibility & contrast

On white

12.51
#2F267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F267A
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F267A#FFFFFF#000000##FFFFFF
##2F267A1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f267a;
/* rgb */ color: rgb(47, 38, 122);
/* oklch */ color: oklch(33.7% 0.137 281.0);
Tailwind
colors: {
  custom: {
    50: '#7161a1',
    500: '#2f267a',
    950: '#000000',
  },
}
SCSS
$custom: #2f267a;
$custom-light: #7161a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f267a",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 246.429,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33652,
    "c": 0.13656,
    "h": 281
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#2F267A
secondary
#A2AC50
accent
#DC4CCC
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F267A

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

Preview Lab → · Contrast checker → · Palette generator →

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