#2B2F7F#2B2F7F

#2B2F7F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.133 H 275.1°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#2B2F7F
RGBrgb(43, 47, 127)
HSLhsl(237, 49%, 33%)
HSVhsv(237, 66%, 50%)
CMYKcmyk(66.1%, 63%, 0%, 50.2%)
CIE-LABlab(23.93, 25.22, -45.89)
CIE-LCHlch(23.93, 52.36, 298.79°)
OKLaboklab(35.44% 0.0119 -0.1321)
OKLCHoklch(35.44% 0.133 275.1)
XYZxyz(5.8423, 4.0784, 20.5539)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F7F #7F7B2B
analogous
#2B597F #2B2F7F #512B7F
triadic
#2B2F7F #7F2B2F #2F7F2B
tetradic
#2B2F7F #7F2B59 #7F7B2B #2B7F51
square
#2B2F7F #7F2B59 #7F7B2B #2B7F51
split-complementary
#2B2F7F #7F512B #597F2B
monochromatic
#0C0D24 #1C1E51 #2B2F7F #3A40AD #5C62C8

Accessibility & contrast

On white

11.57
#2B2F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2B2F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2F7F
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F7F#FFFFFF#000000##FFFFFF
##2B2F7F1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b2f7f;
/* rgb */ color: rgb(43, 47, 127);
/* oklch */ color: oklch(35.4% 0.133 275.1);
Tailwind
colors: {
  custom: {
    50: '#6f67a5',
    500: '#2b2f7f',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f7f;
$custom-light: #6f67a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f7f",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 237.143,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35437,
    "c": 0.13267,
    "h": 275.1
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#2B2F7F
secondary
#AEAA58
accent
#D24FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2B2F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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