#2D2F8B#2D2F8B

#2D2F8B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.149 H 275.3°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2D2F8B
RGBrgb(45, 47, 139)
HSLhsl(239, 51%, 36%)
HSVhsv(239, 68%, 55%)
CMYKcmyk(67.6%, 66.2%, 0%, 45.5%)
CIE-LABlab(25.12, 29.89, -51.45)
CIE-LCHlch(25.12, 59.50, 300.16°)
OKLaboklab(36.67% 0.0137 -0.1484)
OKLCHoklch(36.67% 0.149 275.3)
XYZxyz(6.7574, 4.4544, 24.9248)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F8B #8B892D
analogous
#2D5E8B #2D2F8B #5A2D8B
triadic
#2D2F8B #8B2D2F #2F8B2D
tetradic
#2D2F8B #8B2D5E #8B892D #2D8B5A
square
#2D2F8B #8B2D5E #8B892D #2D8B5A
split-complementary
#2D2F8B #8B5A2D #5E8B2D
monochromatic
#0F102F #1E1F5D #2D2F8B #3C3FB9 #6567CD

Accessibility & contrast

On white

11.11
#2D2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2D2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F8B
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F8B#FFFFFF#000000##FFFFFF
##2D2F8B1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d2f8b;
/* rgb */ color: rgb(45, 47, 139);
/* oklch */ color: oklch(36.7% 0.149 275.3);
Tailwind
colors: {
  custom: {
    50: '#7268ae',
    500: '#2d2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f8b;
$custom-light: #7268ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f8b",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 238.723,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36674,
    "c": 0.14904,
    "h": 275.3
  },
  "luminance": 0.04455
}

Semantic roles & 50–950 ramp

primary
#2D2F8B
secondary
#B4B260
accent
#D84DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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