#242F7A#242F7A

#242F7A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.127 H 271.6°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#242F7A
RGBrgb(36, 47, 122)
HSLhsl(232, 54%, 31%)
HSVhsv(232, 70%, 48%)
CMYKcmyk(70.5%, 61.5%, 0%, 52.2%)
CIE-LABlab(23.04, 22.20, -44.19)
CIE-LCHlch(23.04, 49.45, 296.68°)
OKLaboklab(34.53% 0.0036 -0.1273)
OKLCHoklch(34.53% 0.127 271.6)
XYZxyz(5.2557, 3.8127, 18.8675)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F7A #7A6F24
analogous
#245A7A #242F7A #44247A
triadic
#242F7A #7A242F #2F7A24
tetradic
#242F7A #7A245A #7A6F24 #247A44
square
#242F7A #7A245A #7A6F24 #247A44
split-complementary
#242F7A #7A4424 #5A7A24
monochromatic
#080B1B #161D4B #242F7A #3241A9 #4E5ECB

Accessibility & contrast

On white

11.91
#242F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#242F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F7A
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F7A#FFFFFF#000000##FFFFFF
##242F7A1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242f7a;
/* rgb */ color: rgb(36, 47, 122);
/* oklch */ color: oklch(34.5% 0.127 271.6);
Tailwind
colors: {
  custom: {
    50: '#6b67a1',
    500: '#242f7a',
    950: '#000000',
  },
}
SCSS
$custom: #242f7a;
$custom-light: #6b67a1;
$custom-dark: #000000;
JSON
{
  "hex": "#242f7a",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 232.326,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34526,
    "c": 0.12738,
    "h": 271.6
  },
  "luminance": 0.03813
}

Semantic roles & 50–950 ramp

primary
#242F7A
secondary
#ACA04D
accent
#CB4ADE
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #242F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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