#2F258F#2F258F

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

Color values

HEX#2F258F
RGBrgb(47, 37, 143)
HSLhsl(246, 59%, 35%)
HSVhsv(246, 74%, 56%)
CMYKcmyk(67.1%, 74.1%, 0%, 43.9%)
CIE-LABlab(23.37, 37.76, -56.80)
CIE-LCHlch(23.37, 68.20, 303.62°)
OKLaboklab(35.57% 0.0232 -0.164)
OKLCHoklch(35.57% 0.166 278)
XYZxyz(6.7902, 3.9101, 26.3782)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F258F #858F25
analogous
#25508F #2F258F #64258F
triadic
#2F258F #8F2F25 #258F2F
tetradic
#2F258F #8F2550 #858F25 #258F64
square
#2F258F #8F2550 #858F25 #258F64
split-complementary
#2F258F #8F6425 #508F25
monochromatic
#0F0C2E #1F185E #2F258F #3F32C0 #665AD4

Accessibility & contrast

On white

11.78
#2F258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F258F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F258F#FFFFFF#000000##FFFFFF
##2F258F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f258f;
/* rgb */ color: rgb(47, 37, 143);
/* oklch */ color: oklch(35.6% 0.166 278.0);
Tailwind
colors: {
  custom: {
    50: '#7561b1',
    500: '#2f258f',
    950: '#000000',
  },
}
SCSS
$custom: #2f258f;
$custom-light: #7561b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f258f",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 245.66,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35569,
    "c": 0.16563,
    "h": 278
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F258F

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

Preview Lab → · Contrast checker → · Palette generator →

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