#2F258A#2F258A

#2F258A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.159 H 278.7°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2F258A
RGBrgb(47, 37, 138)
HSLhsl(246, 58%, 34%)
HSVhsv(246, 73%, 54%)
CMYKcmyk(65.9%, 73.2%, 0%, 45.9%)
CIE-LABlab(22.87, 36.09, -54.51)
CIE-LCHlch(22.87, 65.38, 303.51°)
OKLaboklab(35.06% 0.0242 -0.1573)
OKLCHoklch(35.06% 0.159 278.7)
XYZxyz(6.4198, 3.7619, 24.4276)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F258A #808A25
analogous
#254D8A #2F258A #62258A
triadic
#2F258A #8A2F25 #258A2F
tetradic
#2F258A #8A254D #808A25 #258A62
square
#2F258A #8A254D #808A25 #258A62
split-complementary
#2F258A #8A6225 #4D8A25
monochromatic
#0E0B29 #1F185A #2F258A #3F32BA #6457D2

Accessibility & contrast

On white

11.98
#2F258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F258A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F258A#FFFFFF#000000##FFFFFF
##2F258A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f258a;
/* rgb */ color: rgb(47, 37, 138);
/* oklch */ color: oklch(35.1% 0.159 278.7);
Tailwind
colors: {
  custom: {
    50: '#7461ad',
    500: '#2f258a',
    950: '#000000',
  },
}
SCSS
$custom: #2f258a;
$custom-light: #7461ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f258a",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 245.941,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35058,
    "c": 0.15917,
    "h": 278.7
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#2F258A
secondary
#ADB754
accent
#E147D2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F258A

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

Preview Lab → · Contrast checker → · Palette generator →

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