#2A397E#2A397E

#2A397E is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.3% C 0.118 H 270.5°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2A397E
RGBrgb(42, 57, 126)
HSLhsl(229, 50%, 33%)
HSVhsv(229, 67%, 49%)
CMYKcmyk(66.7%, 54.8%, 0%, 50.6%)
CIE-LABlab(26.52, 17.82, -41.06)
CIE-LCHlch(26.52, 44.76, 293.46°)
OKLaboklab(37.33% 0.001 -0.1178)
OKLCHoklch(37.33% 0.118 270.5)
XYZxyz(6.1826, 4.9243, 20.3593)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A397E #7E6F2A
analogous
#2A637E #2A397E #452A7E
triadic
#2A397E #7E2A39 #397E2A
tetradic
#2A397E #7E2A63 #7E6F2A #2A7E45
square
#2A397E #7E2A63 #7E6F2A #2A7E45
split-complementary
#2A397E #7E452A #637E2A
monochromatic
#0B0F22 #1B2450 #2A397E #394EAC #5A6EC8

Accessibility & contrast

On white

10.58
#2A397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A397E
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A397E#FFFFFF#000000##FFFFFF
##2A397E1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4380
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a397e;
/* rgb */ color: rgb(42, 57, 126);
/* oklch */ color: oklch(37.3% 0.118 270.5);
Tailwind
colors: {
  custom: {
    50: '#6d6fa4',
    500: '#2a397e',
    950: '#000000',
  },
}
SCSS
$custom: #2a397e;
$custom-light: #6d6fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a397e",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 229.286,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37325,
    "c": 0.11785,
    "h": 270.5
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

primary
#2A397E
secondary
#AE9E56
accent
#C14EDA
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A397E

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

Preview Lab → · Contrast checker → · Palette generator →

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