#2F258B#2F258B

#2F258B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.160 H 278.6°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#2F258B
RGBrgb(47, 37, 139)
HSLhsl(246, 58%, 35%)
HSVhsv(246, 73%, 55%)
CMYKcmyk(66.2%, 73.4%, 0%, 45.5%)
CIE-LABlab(22.97, 36.43, -54.97)
CIE-LCHlch(22.97, 65.94, 303.53°)
OKLaboklab(35.16% 0.024 -0.1587)
OKLCHoklch(35.16% 0.16 278.6)
XYZxyz(6.4926, 3.7910, 24.8107)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F258B #818B25
analogous
#254E8B #2F258B #62258B
triadic
#2F258B #8B2F25 #258B2F
tetradic
#2F258B #8B254E #818B25 #258B62
square
#2F258B #8B254E #818B25 #258B62
split-complementary
#2F258B #8B6225 #4E8B25
monochromatic
#0E0B2A #1F185B #2F258B #3F32BB #6458D3

Accessibility & contrast

On white

11.94
#2F258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F258B
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F258B#FFFFFF#000000##FFFFFF
##2F258B1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f258b;
/* rgb */ color: rgb(47, 37, 139);
/* oklch */ color: oklch(35.2% 0.160 278.6);
Tailwind
colors: {
  custom: {
    50: '#7461ae',
    500: '#2f258b',
    950: '#000000',
  },
}
SCSS
$custom: #2f258b;
$custom-light: #7461ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f258b",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 245.882,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3516,
    "c": 0.16047,
    "h": 278.6
  },
  "luminance": 0.03792
}

Semantic roles & 50–950 ramp

primary
#2F258B
secondary
#ADB755
accent
#E147D2
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F258B

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

Preview Lab → · Contrast checker → · Palette generator →

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