#2D307E#2D307E

#2D307E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.129 H 276.0°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#2D307E
RGBrgb(45, 48, 126)
HSLhsl(238, 47%, 34%)
HSVhsv(238, 64%, 49%)
CMYKcmyk(64.3%, 61.9%, 0%, 50.6%)
CIE-LABlab(24.25, 24.52, -44.73)
CIE-LCHlch(24.25, 51.01, 298.74°)
OKLaboklab(35.69% 0.0135 -0.1287)
OKLCHoklch(35.69% 0.129 276)
XYZxyz(5.9038, 4.1777, 20.2299)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D307E #7E7B2D
analogous
#2D587E #2D307E #522D7E
triadic
#2D307E #7E2D30 #307E2D
tetradic
#2D307E #7E2D58 #7E7B2D #2D7E52
square
#2D307E #7E2D58 #7E7B2D #2D7E52
split-complementary
#2D307E #7E522D #587E2D
monochromatic
#0D0E24 #1D1F51 #2D307E #3D41AB #5F63C6

Accessibility & contrast

On white

11.44
#2D307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2D307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D307E
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D307E#FFFFFF#000000##FFFFFF
##2D307E1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d307e;
/* rgb */ color: rgb(45, 48, 126);
/* oklch */ color: oklch(35.7% 0.129 276.0);
Tailwind
colors: {
  custom: {
    50: '#7068a4',
    500: '#2d307e',
    950: '#000000',
  },
}
SCSS
$custom: #2d307e;
$custom-light: #7068a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d307e",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 237.778,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35685,
    "c": 0.12936,
    "h": 276
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#2D307E
secondary
#ACA95A
accent
#D251D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D307E

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

Preview Lab → · Contrast checker → · Palette generator →

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