#2B2F95#2B2F95

#2B2F95 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.163 H 273.6°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#2B2F95
RGBrgb(43, 47, 149)
HSLhsl(238, 55%, 38%)
HSVhsv(238, 71%, 58%)
CMYKcmyk(71.1%, 68.5%, 0%, 41.6%)
CIE-LABlab(25.91, 33.20, -56.34)
CIE-LCHlch(25.91, 65.40, 300.51°)
OKLaboklab(37.5% 0.0102 -0.1628)
OKLCHoklch(37.5% 0.163 273.6)
XYZxyz(7.4358, 4.7158, 28.9463)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F95 #95912B
analogous
#2B6495 #2B2F95 #5C2B95
triadic
#2B2F95 #952B2F #2F952B
tetradic
#2B2F95 #952B64 #95912B #2B955C
square
#2B2F95 #952B64 #95912B #2B955C
split-complementary
#2B2F95 #955C2B #64952B
monochromatic
#101136 #1D2066 #2B2F95 #393EC4 #676BD3

Accessibility & contrast

On white

10.81
#2B2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2B2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2F95
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F95#FFFFFF#000000##FFFFFF
##2B2F951.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b2f95;
/* rgb */ color: rgb(43, 47, 149);
/* oklch */ color: oklch(37.5% 0.163 273.6);
Tailwind
colors: {
  custom: {
    50: '#7468b5',
    500: '#2b2f95',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f95;
$custom-light: #7468b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f95",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 237.736,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37496,
    "c": 0.16311,
    "h": 273.6
  },
  "luminance": 0.04717
}

Semantic roles & 50–950 ramp

primary
#2B2F95
secondary
#BAB662
accent
#D949DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2B2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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