#2F258C#2F258C

#2F258C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.162 H 278.5°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2F258C
RGBrgb(47, 37, 140)
HSLhsl(246, 58%, 35%)
HSVhsv(246, 74%, 55%)
CMYKcmyk(66.4%, 73.6%, 0%, 45.1%)
CIE-LABlab(23.07, 36.76, -55.43)
CIE-LCHlch(23.07, 66.51, 303.55°)
OKLaboklab(35.26% 0.0238 -0.16)
OKLCHoklch(35.26% 0.162 278.5)
XYZxyz(6.5660, 3.8204, 25.1973)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F258C #828C25
analogous
#254F8C #2F258C #62258C
triadic
#2F258C #8C2F25 #258C2F
tetradic
#2F258C #8C254F #828C25 #258C62
square
#2F258C #8C254F #828C25 #258C62
split-complementary
#2F258C #8C6225 #4F8C25
monochromatic
#0E0B2B #1F185C #2F258C #3F32BC #6458D3

Accessibility & contrast

On white

11.90
#2F258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F258C
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F258C#FFFFFF#000000##FFFFFF
##2F258C1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f258c;
/* rgb */ color: rgb(47, 37, 140);
/* oklch */ color: oklch(35.3% 0.162 278.5);
Tailwind
colors: {
  custom: {
    50: '#7561af',
    500: '#2f258c',
    950: '#000000',
  },
}
SCSS
$custom: #2f258c;
$custom-light: #7561af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f258c",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 245.825,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35262,
    "c": 0.16177,
    "h": 278.5
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#2F258C
secondary
#AEB855
accent
#E146D2
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F258C

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

Preview Lab → · Contrast checker → · Palette generator →

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