#2F268E#2F268E

#2F268E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.163 H 278.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2F268E
RGBrgb(47, 38, 142)
HSLhsl(245, 58%, 35%)
HSVhsv(245, 73%, 56%)
CMYKcmyk(66.9%, 73.2%, 0%, 44.3%)
CIE-LABlab(23.48, 36.84, -55.99)
CIE-LCHlch(23.48, 67.03, 303.34°)
OKLaboklab(35.62% 0.0227 -0.1617)
OKLCHoklch(35.62% 0.163 278)
XYZxyz(6.7463, 3.9430, 25.9915)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F268E #858E26
analogous
#26518E #2F268E #63268E
triadic
#2F268E #8E2F26 #268E2F
tetradic
#2F268E #8E2651 #858E26 #268E63
square
#2F268E #8E2651 #858E26 #268E63
split-complementary
#2F268E #8E6326 #518E26
monochromatic
#0F0C2D #1F195E #2F268E #3F33BE #665BD3

Accessibility & contrast

On white

11.74
#2F268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F268E
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F268E#FFFFFF#000000##FFFFFF
##2F268E1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f268e;
/* rgb */ color: rgb(47, 38, 142);
/* oklch */ color: oklch(35.6% 0.163 278.0);
Tailwind
colors: {
  custom: {
    50: '#7562b0',
    500: '#2f268e',
    950: '#000000',
  },
}
SCSS
$custom: #2f268e;
$custom-light: #7562b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f268e",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 245.192,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35617,
    "c": 0.16325,
    "h": 278
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#2F268E
secondary
#B0B858
accent
#E147D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F268E

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

Preview Lab → · Contrast checker → · Palette generator →

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