#2F258E#2F258E

#2F258E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.164 H 278.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2F258E
RGBrgb(47, 37, 142)
HSLhsl(246, 59%, 35%)
HSVhsv(246, 74%, 56%)
CMYKcmyk(66.9%, 73.9%, 0%, 44.3%)
CIE-LABlab(23.27, 37.43, -56.34)
CIE-LCHlch(23.27, 67.64, 303.60°)
OKLaboklab(35.47% 0.0234 -0.1627)
OKLCHoklch(35.47% 0.164 278.2)
XYZxyz(6.7148, 3.8799, 25.9810)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F258E #848E25
analogous
#25508E #2F258E #63258E
triadic
#2F258E #8E2F25 #258E2F
tetradic
#2F258E #8E2550 #848E25 #258E63
square
#2F258E #8E2550 #848E25 #258E63
split-complementary
#2F258E #8E6325 #508E25
monochromatic
#0F0C2D #1F185D #2F258E #3F32BF #655AD4

Accessibility & contrast

On white

11.82
#2F258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F258E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F258E#FFFFFF#000000##FFFFFF
##2F258E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f258e;
/* rgb */ color: rgb(47, 37, 142);
/* oklch */ color: oklch(35.5% 0.164 278.2);
Tailwind
colors: {
  custom: {
    50: '#7561b0',
    500: '#2f258e',
    950: '#000000',
  },
}
SCSS
$custom: #2f258e;
$custom-light: #7561b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f258e",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 245.714,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35466,
    "c": 0.16434,
    "h": 278.2
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#2F258E
secondary
#AFB956
accent
#E246D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F258E

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

Preview Lab → · Contrast checker → · Palette generator →

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