#242A7F#242A7F

#242A7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.141 H 273.1°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#242A7F
RGBrgb(36, 42, 127)
HSLhsl(236, 56%, 32%)
HSVhsv(236, 72%, 50%)
CMYKcmyk(71.7%, 66.9%, 0%, 50.2%)
CIE-LABlab(22.17, 27.51, -48.78)
CIE-LCHlch(22.17, 56.00, 299.42°)
OKLaboklab(34.02% 0.0076 -0.1408)
OKLCHoklch(34.02% 0.141 273.1)
XYZxyz(5.3850, 3.5628, 20.4785)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A7F #7F7924
analogous
#24587F #242A7F #4C247F
triadic
#242A7F #7F242A #2A7F24
tetradic
#242A7F #7F2458 #7F7924 #247F4C
square
#242A7F #7F2458 #7F7924 #247F4C
split-complementary
#242A7F #7F4C24 #587F24
monochromatic
#090A20 #161A4F #242A7F #323AAF #5058CD

Accessibility & contrast

On white

12.26
#242A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#242A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242A7F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A7F#FFFFFF#000000##FFFFFF
##242A7F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #242a7f;
/* rgb */ color: rgb(36, 42, 127);
/* oklch */ color: oklch(34.0% 0.141 273.1);
Tailwind
colors: {
  custom: {
    50: '#6c63a5',
    500: '#242a7f',
    950: '#000000',
  },
}
SCSS
$custom: #242a7f;
$custom-light: #6c63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#242a7f",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 236.044,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34021,
    "c": 0.14105,
    "h": 273.1
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#242A7F
secondary
#B1AB4E
accent
#D549DF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #242A7F

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

Preview Lab → · Contrast checker → · Palette generator →

#242A7F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva