#2F268B#2F268B

#2F268B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.159 H 278.4°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2F268B
RGBrgb(47, 38, 139)
HSLhsl(245, 57%, 35%)
HSVhsv(245, 73%, 55%)
CMYKcmyk(66.2%, 72.7%, 0%, 45.5%)
CIE-LABlab(23.18, 35.83, -54.62)
CIE-LCHlch(23.18, 65.32, 303.26°)
OKLaboklab(35.31% 0.0233 -0.1576)
OKLCHoklch(35.31% 0.159 278.4)
XYZxyz(6.5241, 3.8541, 24.8212)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F268B #828B26
analogous
#264F8B #2F268B #62268B
triadic
#2F268B #8B2F26 #268B2F
tetradic
#2F268B #8B264F #828B26 #268B62
square
#2F268B #8B264F #828B26 #268B62
split-complementary
#2F268B #8B6226 #4F8B26
monochromatic
#0E0C2B #1F195B #2F268B #3F33BB #645AD2

Accessibility & contrast

On white

11.86
#2F268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F268B
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F268B#FFFFFF#000000##FFFFFF
##2F268B1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f268b;
/* rgb */ color: rgb(47, 38, 139);
/* oklch */ color: oklch(35.3% 0.159 278.4);
Tailwind
colors: {
  custom: {
    50: '#7462ae',
    500: '#2f268b',
    950: '#000000',
  },
}
SCSS
$custom: #2f268b;
$custom-light: #7462ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f268b",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 245.347,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35313,
    "c": 0.15935,
    "h": 278.4
  },
  "luminance": 0.03855
}

Semantic roles & 50–950 ramp

primary
#2F268B
secondary
#AEB756
accent
#E047D3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F268B

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

Preview Lab → · Contrast checker → · Palette generator →

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