#2F267C#2F267C

#2F267C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.139 H 280.6°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2F267C
RGBrgb(47, 38, 124)
HSLhsl(246, 53%, 32%)
HSVhsv(246, 69%, 49%)
CMYKcmyk(62.1%, 69.4%, 0%, 51.4%)
CIE-LABlab(21.75, 30.72, -47.54)
CIE-LCHlch(21.75, 56.60, 302.87°)
OKLaboklab(33.84% 0.0257 -0.1369)
OKLCHoklch(33.84% 0.139 280.6)
XYZxyz(5.5023, 3.4454, 19.4400)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F267C #737C26
analogous
#26487C #2F267C #5A267C
triadic
#2F267C #7C2F26 #267C2F
tetradic
#2F267C #7C2648 #737C26 #267C5A
square
#2F267C #7C2648 #737C26 #267C5A
split-complementary
#2F267C #7C5A26 #487C26
monochromatic
#0B091E #1D184D #2F267C #4134AB #5F52CA

Accessibility & contrast

On white

12.43
#2F267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F267C
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F267C#FFFFFF#000000##FFFFFF
##2F267C1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f267c;
/* rgb */ color: rgb(47, 38, 124);
/* oklch */ color: oklch(33.8% 0.139 280.6);
Tailwind
colors: {
  custom: {
    50: '#7161a3',
    500: '#2f267c',
    950: '#000000',
  },
}
SCSS
$custom: #2f267c;
$custom-light: #7161a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f267c",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 246.279,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33841,
    "c": 0.13931,
    "h": 280.6
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

primary
#2F267C
secondary
#A4AE50
accent
#DC4BCD
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F267C

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

Preview Lab → · Contrast checker → · Palette generator →

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