#2F289F#2F289F

#2F289F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.183 H 275.7°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2F289F
RGBrgb(47, 40, 159)
HSLhsl(244, 60%, 39%)
HSVhsv(244, 75%, 62%)
CMYKcmyk(70.4%, 74.8%, 0%, 37.6%)
CIE-LABlab(25.64, 41.35, -62.90)
CIE-LCHlch(25.64, 75.27, 303.32°)
OKLaboklab(37.67% 0.0181 -0.1818)
OKLCHoklch(37.67% 0.183 275.7)
XYZxyz(8.1870, 4.6244, 33.2553)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F289F #989F28
analogous
#285D9F #2F289F #6B289F
triadic
#2F289F #9F2F28 #289F2F
tetradic
#2F289F #9F285D #989F28 #289F6B
square
#2F289F #9F285D #989F28 #289F6B
split-complementary
#2F289F #9F6B28 #5D9F28
monochromatic
#120F3D #211C6E #2F289F #4037CD #6F68D9

Accessibility & contrast

On white

10.91
#2F289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F289F
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F289F#FFFFFF#000000##FFFFFF
##2F289F1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f289f;
/* rgb */ color: rgb(47, 40, 159);
/* oklch */ color: oklch(37.7% 0.183 275.7);
Tailwind
colors: {
  custom: {
    50: '#7864bd',
    500: '#2f289f',
    950: '#000000',
  },
}
SCSS
$custom: #2f289f;
$custom-light: #7864bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f289f",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 243.529,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37672,
    "c": 0.18272,
    "h": 275.7
  },
  "luminance": 0.04625
}

Semantic roles & 50–950 ramp

primary
#2F289F
secondary
#BABF64
accent
#E345DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F289F

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

Preview Lab → · Contrast checker → · Palette generator →

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