#2F258D#2F258D

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

Color values

HEX#2F258D
RGBrgb(47, 37, 141)
HSLhsl(246, 58%, 35%)
HSVhsv(246, 74%, 55%)
CMYKcmyk(66.7%, 73.8%, 0%, 44.7%)
CIE-LABlab(23.17, 37.09, -55.89)
CIE-LCHlch(23.17, 67.08, 303.57°)
OKLaboklab(35.36% 0.0236 -0.1613)
OKLCHoklch(35.36% 0.163 278.3)
XYZxyz(6.6400, 3.8500, 25.5873)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F258D #838D25
analogous
#254F8D #2F258D #63258D
triadic
#2F258D #8D2F25 #258D2F
tetradic
#2F258D #8D254F #838D25 #258D63
square
#2F258D #8D254F #838D25 #258D63
split-complementary
#2F258D #8D6325 #4F8D25
monochromatic
#0F0C2C #1F185D #2F258D #3F32BD #6559D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F258D#FFFFFF#000000##FFFFFF
##2F258D1.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)
#003B90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f258d;
/* rgb */ color: rgb(47, 37, 141);
/* oklch */ color: oklch(35.4% 0.163 278.3);
Tailwind
colors: {
  custom: {
    50: '#7561af',
    500: '#2f258d',
    950: '#000000',
  },
}
SCSS
$custom: #2f258d;
$custom-light: #7561af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f258d",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 245.769,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35364,
    "c": 0.16306,
    "h": 278.3
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#2F258D
secondary
#AFB856
accent
#E246D3
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F258D

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

Preview Lab → · Contrast checker → · Palette generator →

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